Code: Select all
asnp "VeeamPSSnapIn" -ErrorAction SilentlyContinue
$active_sessions = Get-VBRBackupSession | ?{$_.State -eq "Working"} | Sort JobName, Name
if (!$active_sessions) { Disable-NetAdapter iSCSI -Confirm:$false}
What am I missing?
Code: Select all
asnp "VeeamPSSnapIn" -ErrorAction SilentlyContinue
$active_sessions = Get-VBRBackupSession | ?{$_.State -eq "Working"} | Sort JobName, Name
if (!$active_sessions) { Disable-NetAdapter iSCSI -Confirm:$false}
Users browsing this forum: Semrush [Bot] and 5 guests