So I'm trying to emulate a security related github repository using VMs and for that I had to run a VBScript.
The VBScript is as follows:
Set oShell = CreateObject ("Wscript.Shell")
Dim strArgs
strArgs = "C:\Users\Public\Java-Update.exe"
oShell.Run strArgs, 0, false
where Java-Update.exe
is a file that I have present within my computer.
Now I'm performing a Remote Desktop Connection from another VM, and I'm decently sure that I have logged in as an administrator, however, when I try to run the VBScript, I get the Permission Denied with error code 800A0046 error. I got this exact error even when I tried to run the script on the VM itself.
Help would be really appreciated, I'll gladly provide any information needed
Cmd
prompt withRun as administrator
. Then run your VBS file from that command line. For example:wscript Java-Update.vbs
. Does it still error?Java-Update.exe
why not just run that exe directly (as administrator if required)?