Skip to main content

System utility to view and modify network-related settings.

:: To start or stop a Windows service synchronously:
net <start|stop> <service>

:: To make sure an SMB share is available in the current console:
net use <\\smb_shared_folder> /USER:<username>

:: To show the folders currently shared over SMB:
net share

:: To show who is using your SMB shares (run in elevated console):
net session

:: To show users in a local security group:
net localgroup "<Administrators>"

:: To add a user to the local security group (run in elevated console):
net localgroup "<Administrators>" <username> /add

:: To display help for a subcommand:
net help <subcommand>

:: To display help:
net help