I have a VBScript file that I would like to run on a remote machine using invoke:
Invoke-Command -ScriptBlock { cscript.exe "C:\test.vbs" } -Computer Machine1
When I execute this command, nothing happens. Neither on the remote machine nor in the shell window on my local machine; the only lines that appear in my local shell window after executing are:
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
But it stays like this and I am not able to do anything anymore with the shell. I also dont get any error msg. The VBScript itself is quite small and takes just a few seconds to run. Also I did try and run the VBScript on the remote host directly (in remote desktop) and it is working.
Any clue where I could get some details on why the remote call doesn't do anything?