Skip to main content

Get-VeeamDistroSvc.ps1

  • March 14, 2022
  • 2 comments
  • 178 views

k00laidIT
Forum|alt.badge.img+7
#Requires -Version 5.1 -PSEdition Desktop
<#
.Synopsis
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, https://www.veeam.com/kb4288
.Notes
Version: 1.0
Author: Jim Jones, @k00laidIT
Modified Date: 3/13/2022

.EXAMPLE
.\Get-VeeamDistroSvc.ps1

#>

$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 $server.name -Name $svcName | select name, status, startType
$quickInfo = New-Object psobject -Property @{
server = $server.name
service = $svcstatus.Name
status = $svcstatus.status
startType = $svcstatus.startType
}
$mySvcInfo += $quickInfo
}
$mySvcInfo | select server, service, status, startType

 

2 comments

Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 9557 comments
  • March 14, 2022

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


regnor
Forum|alt.badge.img+14
  • Veeam MVP
  • 1386 comments
  • March 15, 2022

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.