Disable Admin account through registry
I install windows 7 through PXE and afterward load specific apps and due some cleanup. All of this is done unattended. Administrator account is enabled through this process, but during the final scripting I disable it using the net user command. This works fine for nearly all languages, except Russian, and Swedish as the Administrator account is named differently. Is there a way to reg slam disable the account? I don't know where in the registry the admin account resides. I could due this while I'm still logged in as the admin, during the unattend process, just before rebooting. ThanksBlane
June 12th, 2012 6:39am

On Tue, 12 Jun 2012 10:39:31 +0000, bkrocker wrote: >I install windows 7 through PXE and afterward load specific apps and due some cleanup. All of this is done unattended. Administrator account is enabled through this process, but during the final scripting I disable it using the net user command. This works fine for nearly all languages, except Russian, and Swedish as the Administrator account is named differently. Is there a way to reg slam disable the account? I don't know where in the registry the admin account resides. I could due this while I'm still logged in as the admin, during the unattend process, just before rebooting. Thanks You should be asking this question in a Windows 7 forum. --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
June 12th, 2012 6:06pm

On Tue, 12 Jun 2012 10:39:31 +0000, bkrocker wrote: >I install windows 7 through PXE and afterward load specific apps and due some cleanup. All of this is done unattended. Administrator account is enabled through this process, but during the final scripting I disable it using the net user command. This works fine for nearly all languages, except Russian, and Swedish as the Administrator account is named differently. Is there a way to reg slam disable the account? I don't know where in the registry the admin account resides. I could due this while I'm still logged in as the admin, during the unattend process, just before rebooting. Thanks You should be asking this question in a Windows 7 forum. --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
June 12th, 2012 6:06pm

Hi, You may add a key on the HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon. Right click Winlon Winlogon and click New and click Key.Type SpecialAccounts and press Enter. In the left panel, right click on SpecialAccounts and click New and click Key. Type UserList and press Enter. In right panel of UserList, right click on a empty area and click New then click DWORD (32bit) Value. Type in the Administrator of the user account. The value of the DWORD, 1 means enable, and 0 just the opposite. Another way is run "net user administrator /active:no" or "net user administrator /active:yes" commands to disable or enable the Administrator account.Ivan-Liu TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
June 13th, 2012 11:40pm

Hi, You may add a key on the HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon. Right click Winlon Winlogon and click New and click Key.Type SpecialAccounts and press Enter. In the left panel, right click on SpecialAccounts and click New and click Key. Type UserList and press Enter. In right panel of UserList, right click on a empty area and click New then click DWORD (32bit) Value. Type in the Administrator of the user account. The value of the DWORD, 1 means enable, and 0 just the opposite. Another way is run "net user administrator /active:no" or "net user administrator /active:yes" commands to disable or enable the Administrator account.Ivan-Liu TechNet Community Support
June 17th, 2012 11:18pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics