< Granite WMS < Misc

Handy Commands

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

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.