Skip to content

Instantly share code, notes, and snippets.

@poshcodebear
Created June 13, 2017 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poshcodebear/c163c491c88844340973dc85b2902655 to your computer and use it in GitHub Desktop.
Save poshcodebear/c163c491c88844340973dc85b2902655 to your computer and use it in GitHub Desktop.
Sample json output of 'Get-Service winrm | ConvertTo-JSON'
{
"CanPauseAndContinue": false,
"CanShutdown": true,
"CanStop": true,
"DisplayName": "Windows Remote Management (WS-Management)",
"DependentServices": [
],
"MachineName": ".",
"ServiceName": "winrm",
"ServicesDependedOn": [
{
"CanPauseAndContinue": false,
"CanShutdown": false,
"CanStop": false,
"DisplayName": "Remote Procedure Call (RPC)",
"DependentServices": null,
"MachineName": ".",
"ServiceName": "RPCSS",
"ServicesDependedOn": "DcomLaunch RpcEptMapper",
"ServiceHandle": null,
"Status": 4,
"ServiceType": 32,
"StartType": 2,
"Site": null,
"Container": null
},
{
"CanPauseAndContinue": false,
"CanShutdown": false,
"CanStop": true,
"DisplayName": "HTTP Service",
"DependentServices": "Spooler WMPNetworkSvc WinRM SSDPSRV RemoteAccess Wecsvc upnphost Fax FDResPub HomeGroupProvider fdPHost",
"MachineName": ".",
"ServiceName": "HTTP",
"ServicesDependedOn": "",
"ServiceHandle": null,
"Status": 4,
"ServiceType": 1,
"StartType": 3,
"Site": null,
"Container": null
}
],
"ServiceHandle": null,
"Status": 4,
"ServiceType": 48,
"StartType": 2,
"Site": null,
"Container": null,
"Name": "winrm",
"RequiredServices": [
{
"CanPauseAndContinue": false,
"CanShutdown": false,
"CanStop": false,
"DisplayName": "Remote Procedure Call (RPC)",
"DependentServices": null,
"MachineName": ".",
"ServiceName": "RPCSS",
"ServicesDependedOn": "DcomLaunch RpcEptMapper",
"ServiceHandle": null,
"Status": 4,
"ServiceType": 32,
"StartType": 2,
"Site": null,
"Container": null
},
{
"CanPauseAndContinue": false,
"CanShutdown": false,
"CanStop": true,
"DisplayName": "HTTP Service",
"DependentServices": "Spooler WMPNetworkSvc WinRM SSDPSRV RemoteAccess Wecsvc upnphost Fax FDResPub HomeGroupProvider fdPHost",
"MachineName": ".",
"ServiceName": "HTTP",
"ServicesDependedOn": "",
"ServiceHandle": null,
"Status": 4,
"ServiceType": 1,
"StartType": 3,
"Site": null,
"Container": null
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment