Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 543

PowerShell Studio • Re: get-service startuptype returns nothing

$
0
0
Did some more testing and found that if I wrapped the service inside PWSH it does return the results..
ie..
pwsh -command {
foreach ($Service in get-service | Select-Object -property Name, Startuptype, Status)
{
$Name = $Service.name.ToUpper()
$Start = $Service.StartupType
$State = $service.status
Write-Host "$Name $start $state"
}
}

Statistics: Posted by owinsloe — Sun Mar 17, 2024 5:46 pm



Viewing all articles
Browse latest Browse all 543

Trending Articles