I use this PowerShell script for Domain System Volume (SYSVOL) Share Health monitor in SolarWinds.
$dcServerName = $args[0]
$dcServerShareStatus = net view $dcServerName
if($dcServerShareStatus -eq $null){
Write-Host "Message: Problem with SYSVOL Logon server share on $dcServerName"
Write-Host "Statistic: 1"
break
}
if($dcServerShareStatus[0] -eq "Shared resources at $dcServerName"){
foreach ($item in $dcServerShareStatus){
if($item.Contains("SYSVOL") -and $item.Contains("Logon server share")){
Write-Host "Message: SYSVOL Logon server share on $dcServerName"
Write-Host "Statistic: 0"
break
}
}
}
else{
Write-Host "Message: No Shared resources at $dcServerName"
Write-Host "Statistic: 0"
}