Net Use commands 26 May 2008
Posted by it2tp in Windows.Tags: Net Use, Windows
trackback
Just some Net Use commands
Add a local user called Tmpadmin with a password secretpass111:
net user /Add Tmpadmin secretpass111
Add the user Tmpadmin to the local administrators group
net localgroup administrators /Add Tmpadmin
Change password of user Tmpadmin to newpass222:
net user Tmpadmin newpass222
Note: with this simple command you can create a group policy which resets the local administrator password on a OU. Just create a batch file in Computer Configuration, Windows Settings, Scripts, Startup.
net user administrator %1
Then you can use the password as parameter
Retrieve the list of the local users:
net user
Mapping a free drive letter to \\pcname\\sharename, using credentials domainname\username with password secretpass111 (if you don’t type it here, you can enter it after pressing enter and then it will not be displayed)
net use * \\pcname\sharename /user:domainname\username secretpass111
Comments»
No comments yet — be the first.