MSI, App-V, SCCM, Appsense, Citrix. This blog contains hints and tips on these technologies. Primarily it is an online notebook of items that I may need to refer to in the future, or things I constantly forget!
Monday, February 11, 2019
SC
This lists all SERVICE_NAME and DISPLAY_NAME items which match the string.
sc queryex type= service | find /i "string"
The DISPLAYNAME and SERVICE_NAME may be completely different strings though.
This command gets the SERVICE_NAME from the DISPLAY_NAME
sc getkeyname "SMS Agent Host"
returns
[SC] GetServiceKeyName SUCCESS
Name = CcmExec
This shows the windows service status.
sc query "SERVICE_NAME"
These are start/stop commands
sc start "SERVICE_NAME"
sc stop "SERVICE_NAME"