Userlevel 6
Badge +6
#Requires -Version 5.1 -PSEdition Desktop
Reports on a given list of AD servers if they have the VeeamDistributionSvc running and it's startType. This is in response to Veeam KB4288,
Version: 1.0
Author: Jim Jones, @k00laidIT
Modified Date: 3/13/2022



$svcName = "VeeamDistributionSvc"
$servers = Get-ADComputer -filter * | where {$_.Name -like "*veeam*" -or $_.Name -like "*backup*" -or $_.Name -like "*whatever*"}

[System.Collections.ArrayList]$mySvcInfo = @()
foreach ($server in $servers) {
$svcstatus = get-service -ComputerName $ -Name $svcName | select name, status, startType
$quickInfo = New-Object psobject -Property @{
server = $
service = $svcstatus.Name
status = $svcstatus.status
startType = $svcstatus.startType
$mySvcInfo += $quickInfo
$mySvcInfo | select server, service, status, startType



Userlevel 7
Badge +21

Thanks for sharing this Jim. I will pass this to our Veeam guys to help them work on this for sure.

Userlevel 7
Badge +14

Depending on how big your environment is, it can make sense to search for distribution Services. Thanks for sharing!

In addition you could also check for open port 9380; just in case you have non domain servers.