Script to get all VMs that automatically start with a host and remove the automatic startup functionality. Im not even sure how to start this. I imagine to find all VMs that start with a host, it would be something like this:
Foreach($VM in Get-VM) | Select-Object Name, AutomaticStartAction
But the above doesn't populate the AutomaticStartAction column. And I don’t know the command to remove the AutomaticStart Action
Any help would be appreciated