Windows command line

Reboot the computer, forcing applications to quit, displaying a warning message:

shutdown -r  -f

Reboot immediately and without warning:

shutdown -r  -f -t 0

Cancel pending shutdown or reboot:

shutdown /a

Add a user:

net user <username> <password> /add

Delete a user:

net user <username> /del

List users:

net user

Display detailed user info:

net user <username>

Add user to a group:

net localgroup <groupname> <username> /add

List members of a group:

net localgroup <groupname>

Remove user from a group:

net localgroup <groupname> <username> /del

Connect a network share to a network drive:

net use <drive_letter>: \\<hostname>\<sharename>

Disconnect a network drive:

net use <drive_letter>: /delete
Create windows network share:
net share <sharename>=<path>

Delete share:

net share <sharename> /delete

Make Windows to forget logins for network shares:

net use * /delete
Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s