Granite WMS/Misc/Windows

NET USE to switch account on network
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 (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