Ah now I understand
This should do the trick
$SSRS = Get-Service -ComputerName $server -name *report*
$SSIS = Get-Service -ComputerName $server -name *Integra*
If ($SSRS -eq $null)
{
Write-Host SSRS Not Installed on $server
}
else
{
$SSRS
}
If ($SSIS -eq $null)
{
Write-Host SSIS Not Installed on $server
}
else
{
$SSIS
}
you can work out the others
https://blog.robsewell.com Its where I blog
SQL Community Slack Channel https://sqlps.io/slack
The Best PowerShell Module for the Modern SQL DBA https://dbatools.io
Data South West User Group http://sqlsouthwest.co.uk/[/url]