Management remote services from command line (Windows)

The utility psservice lists or controls services on a local or remote system.

psservice [\\Computer [-u Username [-p Password]]] <cmd>

Cmd is one of the following:

query - Queries the status of a service
config - Queries the configuration
setconfig - Sets the configuration
start - Starts a service
stop - Stops a service
restart - Stops and then restarts a service
pause - Pauses a service
cont - Continues a paused service
depend - Enumerates the services that depend on the one specified
find - Searches for an instance of a service on the network
security - Reports the security permissions assigned to a service


psservice \\computer1 restart ntfrs - stops and then starts ntfrs service


1 comment:

Nira said...

Well said.

Recent Posts