Friday, November 16, 2012

Misc CMD commands

net start : lists all running services
net config workstation : to get the logged on user info
net stop "service name" : to stop a particular service
net use drive_letter: \\computername\sharename : to map a share with a drive name
net use drive_letter: /delete : to unmap the mapped share
sc query type= service state= active : to get all active services
sc query type= service state= inactive : to get all stopped/inactive services
sc query type= service state= all : to get all services

Sources
Services Query
CMD optons

No comments: