Jump to content

Registry Enumeration


Recommended Posts

We use a service account on PCs we manage, on new builds I want to setup the account and hide the account from the Welcome Screen.

With Vista the SpecialAccounts and UserList don't exist so I'm not sure it'll be created using the code below, any help would be GREAT!

; Check Registry and Hide User Account from Welcome Screen

RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList", $UserName)

If @error <> 0 Then RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList", $UserName, "REG_DWORD", "0")

EndIf

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...