Link to home
Start Free TrialLog in
Avatar of tegenius
tegeniusFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Enabling Local Admin Account on Vista and Win7 via Group Policy OR Script

I'm trying to find a solution that will enable the local admin account on our new windows vista and 7 machines. So far... I'm not having any luck with this solution: http://social.technet.microsoft.com/Forums/en/winserverGP/thread/b1e94909-bb0b-4e10-83a0-cd7812dfe073

The script doesn't actually "enable" the account. I wondered if there was something I could add to the script that would change this or do I need to run a bat file separately to run "net use administrator /active:yes"?
Set WshNetwork = WScript.CreateObject("WScript.Network")
strComputer = "."
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator,user")
objUser.SetPassword "NEW.PASSWORD" ' Enter new password between brackets
objUser.SetInfo

Open in new window

SOLUTION
Avatar of marce_lito
marce_lito

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of me
me


Control Panel>User accounts>Manage User Accounts>Advanced tab>Advanced Button>double click Users>right click Administrator and Set Password>right click Administrator again ans select Properties>un-check "Account is Disabled"