We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 328e22b commit 4edcb74Copy full SHA for 4edcb74
VMSwitchPortMonitorMode.psm1
@@ -68,6 +68,8 @@ function CheckJob($out) {
68
} else {
69
throw $job.ErrorDescription
70
}
71
+ } else {
72
+ Start-Sleep -Milliseconds 200
73
74
} while ($true)
75
@@ -116,7 +118,7 @@ function Set-VMSwitchPortMonitorMode() {
116
118
process {
117
119
$epasds = GetSwitchEthernetPortAllocationSettingData $SwitchName $PortType
120
if(!$epasds) {
- throw "Port for VMSwitch named ""$vswitchName"" not found"
121
+ throw "Port for VMSwitch named ""$SwitchName"" not found"
122
123
foreach($epasd in $epasds) {
124
$espssd = GetEthernetSwitchPortSecuritySettingData $epasd
0 commit comments