Asked By
ashsuliven
0 points
N/A
Posted on - 01/27/2012
My computer runs with Windows Server 2003.
Every time I try to execute ‘.vbs’ file, an error message is displayed which says ‘Access Denied’.
I think spyware is blocking the ‘wscript.exe’.
I have run the ‘wscript.exe’ from its original path which is in the drive ‘C’ ,
‘Windows’ folder and ‘System 32’ folder, but the same message is displayed again.
Also, I have executed within the administrator account, but there is no change in the result.
So, please help me to sort out this problem.
Thanks in advance.
Access denied – ‘wscript.exe’ due to spyware.
You don't have enough permissions or the wscript is not recognizing you as the administrator. So you should try something in the registries. But this is a risky task and you should do this on your own.
-
Click Start and type regedit in Run.
-
Go to Hkey_Classes_Root*Shell and create a new key under this and name it anything like "userkey".
-
Go to your newly made key. On the right side, double click the value need default and edit it. Type "giving admin access".
-
Now make a new subkey under "userkey" and name it "code".
-
Again on the right side double click the Default and in the dialogue box type the following
-
wscript.exe "D:Microsoft VSmyscriptsyourscript.vbs" "%1"
-
The path in bold characters can be changed by your own path which will be different from this one.
-
Click OK. Restart and your are ok with it.
Another Method is to create new registry keys
-
Go to Hkey_UsersDefaultSoftwareMicrosoftWindows Script HostSettings
-
BatchMode: REG_DWORD: 0 must be like this
DisplayLogo: REG_DWORD: 0 same as it is
Timeout: REG_DWORD: 0 can change it, but I prefer not to.
Access denied – ‘wscript.exe’ due to spyware.
Hi Michelle Bang.
I got my problem solved by chosen the second step.
Awesome, Thank you very much.