Enable Windows 7 administrator account with group policy

I want to enable Windows 7 local administrator account by using Group Policies. Any way to get this to work?

I ran net user administrator /active:yes as a login script however that needs to runas administrator. When I use the RunAs command, it will only work if I prompt for the domain admiinistrator password
Who is Participating?
Ivano ViolaConnect With a Mentor System AdministratorCommented:
Sorry, the link above was for server 2003. Here is one for Server 2008/Win 7.
There is many ways of doing this.

You might use PSEXEC (http://technet.microsoft.com/en-us/sysinternals/bb897553) and use this commandline: psexec \\* - u DOMAIN\ADMINISTRATOR -p PASSWORD NET USER ADMINISTRATOR /active:yes.

This is use to use and might help you out.
Ivano ViolaSystem AdministratorCommented:
ajdratchAuthor Commented:
Just what I was looking for. At first it did not work becuase the password was not set. I set that by following the document
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.