mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 03:22:08 +02:00

* choice, net, sc, w32tm: remove locale from link * sc: update command syntax Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * sc-*: add alias pages Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> --------- Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
36 lines
839 B
Markdown
36 lines
839 B
Markdown
# net
|
|
|
|
> System utility to view and modify network-related settings.
|
|
> More information: <https://learn.microsoft.com/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/gg651155(v=ws.11)>.
|
|
|
|
- Start or stop a Windows service synchronously:
|
|
|
|
`net {{start|stop}} {{service}}`
|
|
|
|
- Make sure an SMB share is available in the current console:
|
|
|
|
`net use {{\\smb_shared_folder}} /USER:{{username}}`
|
|
|
|
- Show the folders currently shared over SMB:
|
|
|
|
`net share`
|
|
|
|
- Show who is using your SMB shares (run in elevated console):
|
|
|
|
`net session`
|
|
|
|
- Show users in a local security group:
|
|
|
|
`net localgroup "{{Administrators}}"`
|
|
|
|
- Add a user to the local security group (run in elevated console):
|
|
|
|
`net localgroup "{{Administrators}}" {{username}} /add`
|
|
|
|
- Display help for a subcommand:
|
|
|
|
`net help {{subcommand}}`
|
|
|
|
- Display help:
|
|
|
|
`net help`
|