Jump to content

Granite WMS/Misc/Windows

From Wikibooks, open books for an open world

Handy Commands

[edit | edit source]

NET USE to switch account on network

[edit | edit source]

NET USE \\SERVERNAME\IPC$ PASSWORD /USER:USERNAME

Command for remote shutdown/restart

shutdown -m \\SERVERNAME -r -f -t 0 (this will send restart command )

shutdown -i (this will bring up UI with all options)

Commands for services

sc \\SERVERNAME stop <service> (will stop service replace stop with start to start)

sc \\machine queryex type= service state= all | find /i "mysearch" (this will search for service mysearch)

Service names

TermService = remote desktop service

INEDOPROGETSVC = proget service