How to disable Security Questions in Windows 10 using a PowerShell Script

In one of our earlier post, we talked about removing Security Questions from Windows 10. This post offers an alternative way of disabling the same via a PowerShell script. Update-AllUsersQA is a PowerShell script designed to remove or disable the security questions and answers for local users on a Windows 10 machine. It lets admins take control of the security questions in the environment and minimize the risk that arises from them.

Disable Security Questions using a PowerShell Script

If a user has his Microsoft Account configured to sign into Windows 10 then, he’ll probably never notice Password Recovery questions. However, if he has chosen a local account for installing Windows, he’ll be prompted to create three security questions. These can be used to reset the password and log into Windows 10 account should there be any event of misfortune.

However, if you do not find it of much use, you can disable it via a simple PowerShell script which is available for download at GitHub.

To disable the security questions, simply download the .ps1 file from the GitHub repository and open the PowerShell window with admin rights.

Next,  navigate to the folder where .ps1 file is saved – In my case it is the Downloads folder. Copy the folder location address.

In the PowerShell window change the directory by using this command:

cd "folder location address"

Then, enter the following text to disable the recovery questions.

Update-AllUsersQA

disable Security Questions in Windows 10 using a PowerShell Script

Following this, the security questions feature will be disabled. If you try to set a security question, you will get a message alerting that the feature has been disabled.

To enable it again, you’ll need to run the same script with one more parameter –answer. The syntax is as follows-

Update-AllUsersQA -answer SecretAnswer

Please note that you need to replace SecretAnswer with an answer of your own choice. When done, it will be set as the answer for all questions. After that, you can go to the Settings app to change the answer to the questions.

Security questions don’t come across as a very great feature for account security. This is because they appear too easy to set and too hard to monitor in networks made up of hundreds or thousands of computers. A single person with administrator credentials can remotely enable/disable them on any Windows 10 machine and can go unnoticed. As such, if any unknown person gains unauthorized administrative control, he can use the security questions as a backdoor to gain complete control over the network.

Read next:

  1. How to skip Security Questions when setting up Local User Account in Windows 10
  2. Turn On or Off Security Questions using the Windows Registry or Group Policy.
Download this VPN to secure all your Windows devices and browse anonymously
Posted by on , in Category Security with Tags
The author Hemant Saxena is a post-graduate in bio-technology and has an immense interest in following Windows, Office and other technology developments. Quiet by nature, he is an avid Lacrosse player. Creating a System Restore Point first before installing a new software, and being careful about any third-party offers while installing freeware is recommended.

Leave a Reply

Your email address will not be published. Required fields are marked *


9 + 1 =