Link to home
Start Free TrialLog in
Avatar of R W
R WFlag for United States of America

asked on

Remove Local Admin, Delete an Account, Add User

Looking for a way to remove 1 local account. Add an account with a password, set it to never expire and add it to the local admin group.

WMIC USERACCOUNT WHERE "Name='ctcpoweruser'" SET PasswordExpires=FALSE /EXPIRES:NEVER /PASSWORDCHG:NO /ADD

The account I need to remove is ctc and I need to add ctcpoweruser to the local admin group. If this can't be done with WMIC using some other command would be fine. I will be passing this all through a bat file that will psexec it out to all workstations
ASKER CERTIFIED SOLUTION
Avatar of Dennis Johnson
Dennis Johnson
Flag of Greece 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