Net
NET Command
Info
The net command has a massive number of options, only a few are covered here. Remember all Windows commands can get help with /? net time /?
or net /?
- Also shows if they operate as a workgroup or a domain
Show Time for Networked Computer
- UNC: Universal Naming Convention
- UNC: Always starts with \
Show User Accounts for Networked Computer
| net user
# Or for a remote computer
net user \\UNC
|
List Running Services
Start and Stop Service
| net stop <service name>
net start <service name>
|
-
Example: Themes Service
| net stop themes
net start themes
|
-
Example: Print spooler
| net stop "print spooler"
net start "print spooler"
|
Force Account Passwords to Expire After 180 Days
| net accounts /MAXPWAGE:180
|
Share a Folder on the Network
| net share <TheShareName>=C:\Share\Path /GRANT:everyone,FULL
|