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)
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)