

You might face a situation where you will forget your admin password. What to do when you forgot Administrator Password in Windows 10? Use net user administrator /active:no code to protect your admin account with a password.Doing this will disable the admin account on the welcome screen.Replace “yes” with “no” in the above command prompt code.In case you want to disable the admin account in Windows 10, see below: How to disable the admin account in Windows 10? Finally, select the OK button and log in to your admin account in Windows 10 without any password.There you will see a right tick on the option – “Account is disabled”. Untick that mark if you want to enable the Admin account. Now, you will again see a new pop-up window.After entering the above command, you will see a new window where you should select the user option and then click on the Administrator.To open the windows run dialog box, click on the Windows icon + R key simultaneously.See the steps below to know how to log into windows 10 via admin tools. If you are looking for an alternate way, you can log in with admin tools. Now, type the password in the box if you have changed it before, or else you can skip this step.Īnother way to log in as an administrator in Windows 10.You have landed on the page where you will see the Administrator user account.Click on the Start menu, there you will see the profile picture.Now, you need to log out of your current session by using the ‘sign-out’option.To change the password, type net user administrator * But wait, it is not yet password protected.After confirmation, the default administrative account in Windows 10 will get activated. In case, there is an error, please re-write the command.Here you will see a message of text confirmation.

The third step suggest you type the net user administrator /active:yes.This will open an administrator command prompt. Choose the yes button to proceed further. Do the right-click, select the option – Run as Administrator. After this, you will see the Command Prompt option in the search results.The alternate way to see the Cortana search bar, you can use the shortcut Windows logo + S key. There you will see Windows 10 Cortana search bar. Type cmd in the bar and enter. On your computer screen, click on the start menu.Result := (ui1.usri1_flags and UF_ACCOUNTDISABLE) UF_ACCOUNTDISABLE ĬmdExePath = 'C:\Windows\System32\cmd. If NetUserGetInfo(nil, username, 1, ui1) = 0 then program Project1 įunction NetUserGetInfo(servername: PWideChar username: PWideChar level: Cardinal var bufptr: PUserInfo1): Cardinal stdcall external 'netapi32.dll' name 'NetUserGetInfo' Solution working after suggestions left in comments above and following this example.
