Created
April 28, 2021 07:51
-
-
Save nichollsc81/5bb616a92ac5fe484dce3cab2d1d7294 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A random session is chosen | |
$AllServices = Get-Service | |
$Body = foreach($Service in $AllServices) { | |
[PSCustomObject]@{ | |
ServiceName = $Service.ServiceName | |
ServiceStatus = $Service.Status | |
Startup = $Service.StartupType | |
Requires = $Services.RequiredServices | |
} | |
} | |
$Body |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment