Hello,
You need to put the Host into maintenance mode first. Before scanning the host put the following line in your code
Get-VMHost | Set-VMHost -State Maintenance
Hello,
You need to put the Host into maintenance mode first. Before scanning the host put the following line in your code
Get-VMHost | Set-VMHost -State Maintenance