windows - Permission denied error when running VBScript via cscript.exe within PowerShell -
i trying run vbscript via cscript.exe within powershell (by invoking command on remote server).
it keeps erroring out permissions error.
below command failing.
invoke-command -computer testserver1 -scriptblock { set-location 'c:\test1\test2' | cscript.exe -nologo test_v1.03.vbs /anlyze:false /reboot:false } in above command i'm invoking command change directory vbscript located , run vbscript via cscript.exe.
when run same command locally on server in testserver1 works fine, when invoke same command on remote server, vbscript output file gives me permission denied error.
error report 2 - 70 permission denied
my user has full access on remote servers , local server invoking command.
is cscript.exe or vbscript causing issue me?
Comments
Post a Comment