I am trying to call a command from my system to a virtual machine. When I try to run the installer silently it works, but when I try to run the install without /S(silently) the process goes in the background.
My code:
Invoke-Command -VMName name -ScriptBlock {installer.exe} -Credential $cred
it doesn’t work
Any hints?