set-VM -autoStart

Oct 21, 2011 at 11:54 PM

While I have not tested all the set-VM functions, it appears that the -autoStart option cannot be combined with the -server option.

Example:

Works:

set-VM $NewVM -autoStart $StartupAction["AlwaysStartup"]

Does not work:

set-VM $NewVM -autoStart $StartupAction["AlwaysStartup"] -server $server

 

Ay suggestions?