Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 252940

PowerCLI passing Parameters

$
0
0

Hi

I want to pass parameters to my scriptblock in invoke-vmscript

$a="hello"

Scriptblock={

param($outside)

write-host "hello"

$b=$outside

 

}

 

 

invoke-vmScript -vm VM -GuestCredential Hello -ScriptText $ScribtBlock -arguementlist($a)


Viewing all articles
Browse latest Browse all 252940

Trending Articles



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