Skip to content

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 /?

Show Computers on Immediate Network

  • Also shows if they operate as a workgroup or a domain
1
net view

Show Time for Networked Computer

  • UNC: Universal Naming Convention
    • UNC: Always starts with \
1
net time \\UNC

Show User Accounts for Networked Computer

1
2
3
    net user
    # Or for a remote computer
    net user \\UNC

List Running Services

1
    net start

Start and Stop Service

1
2
    net stop <service name>
    net start <service name>
  • Example: Themes Service

    1
    2
    net stop themes
    net start themes
    
  • Example: Print spooler

    1
    2
    net stop "print spooler"
    net start "print spooler"
    

Force Account Passwords to Expire After 180 Days

1
    net accounts /MAXPWAGE:180

Share a Folder on the Network

1
    net share <TheShareName>=C:\Share\Path /GRANT:everyone,FULL