Hi gurus
I am tryingto deploy an exe to all my VDI using invoke-vmscript, so I am using the following
$File = "application.exe"
$Param = "/quiet /norestart"
$SrcPath = "c:\"
$Fullpath = $SrcPath + $File
$cred=Get-credential
$deploy = $fullpath + $File + $Param
Invoke-VMScript -VM $VM -ScriptText $$deploy -GuestCredential $Cred
but it just does not do anything, there is no error, only comes back to prompt and the installation is not done,
what did I miss???
Thanks a bunch
Looks like the application.exe is twice in $deploy
And you have $$deploy instead of $deploy
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Looks like the application.exe is twice in $deploy
And you have $$deploy instead of $deploy
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference