Comment

Hello,

thanks for this script. I get the error message

You cannot call a method on a null-valued expression.
At C:\Batch\Scripts\Sven\Set-VMAdvancedConfiguration.ps1:54 char:56
+       $Task = ($singlevm.ExtensionData).ReconfigVM_Task <<<< ($vmConfigSpec)
    + CategoryInfo          : InvalidOperation: (ReconfigVM_Task:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

the command was

Set-VMAdvancedConfiguration -VM MyVM -key isolation.tools.guestInitiatedUpgrade.disable -value false

best regards, Sven