Link to home
Start Free TrialLog in
Avatar of ojgarciah
ojgarciah

asked on

set local password administrator using GPO

Hi you guys

Is it possible to set local administrator password to all users in my WK3 server using GPO? If it is, how?
In the same way, is it possible to set a user to be local administrator in a computer, if it is, how?

Thanks
Avatar of Brian Pierce
Brian Pierce
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of Ahmed Abdel Salam
Ahmed Abdel Salam

yes you can using startup script
net user administrator "password"
The following command will add the logged in use to the Local Administrators group -
net localgroup Administrators %userdomain%\%username% /add

Of course the problem is that without being a member of the Local Administrators group in the first place this command will not work!  The only way I can think of around this would be add the Domain Users group to the Domain Admins group, stick X-Reagent's command and my command in the network logon script and have everybody reboot their PCs and log in again.  Now just remove Domain Users from Domain Admins.
Bit of a dodgy way of doing it, but depending on your scenario it may be of some use.
ASKER CERTIFIED SOLUTION
Avatar of lecutis
lecutis
Flag of United Kingdom of Great Britain and Northern Ireland image

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