Quantcast
Viewing all articles
Browse latest Browse all 240675

Re: Run Set-VMGuestNetworkInterface get "element not found" error

That is in fact a function, so you will have to first dot-source the .ps1 file.

PS C:> . ./Test-InvokeVMScript.ps1

Note that there is a blank between the 2 dots.

 

Once that is done your PowerShell engine "knows" the function.

And you can do

$vm= Get-VM-Name 2008t1

Test-InvokeVMScript-VM$vm-Detail


Viewing all articles
Browse latest Browse all 240675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>