Add User/Group to Localgroup with cusrmgr.exe
copy \\vls-sen-sdc01\netlogon\cusrmgr.exe C:\
C:
REM Add User Mayer Password:P@sSwoRd
net user Mayer P@sSwoRd /add
REM Add User Mayer to Localgroup Administrators
net localgroup administrators Mayer /add
REM Add Group "Domain\GroupName" to Localgroup Administrators
net localgroup administrators Domain\GroupName /add
REM Rename User Administrator to NewAdmin Password:NewPass
cusrmgr -u administrator -r NewAdmin -P NewPass
REM Set User Mayer's password to NewP@sSwoRd
cusrmgr -u Mayer -P NewP@sSwoRd
REM Add User Mayer to Localgroup Administrators
cusrmgr -u Mayer -alg administrators
del C:\cusrmgr.exe
net time \\vls-sen-sdc01 /set /y
1 comment:
This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post.!
Post a Comment