Link to home
Start Free TrialLog in
Avatar of jesimon
jesimon

asked on

800A0046 Permission denied: "CreateObject"

I am having an issue with user accounts running a VB6 application that administrators can run fine.  The server is Windows 2003 with all the updates.  The server is a terminal server box. I have gone through the VB6 code and determined that the error is occuring when trying to create an object.  I have created a VB script to test with.  It is listed below.  I get a 800A0046 permission denied: "CreateObject" error when attempting to run the script as a regular user.  Administrator works fine.  There are many posts here and elsewhere that talk about this issue.  I have looked at all of them and am still stuck.  Any help or suggestions you can give even if they are a repeat of other posts will be greatly appreciated.

Set fs = CreateObject("Scripting.FileSystemObject")
msgbox "done"
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Avatar of jesimon
jesimon

ASKER

I have already seen that article.  IIS is not involved.
ASKER CERTIFIED SOLUTION
Avatar of ddepastino
ddepastino

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Note on this issue, for Windows 2000 Servers running citrix or users in terminal service, this problem can happen with two solutions;
1.  Install Wscript 5.6 for W2000
http://www.microsoft.com/downloads/details.aspx?familyid=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en
2.  Grant full user permissions to the regkey HKEY_CLASSES_ROOT\Scripting.FileSystemObject
3.  Make sure that no policies change the permissions on the HKEY_CLASSES_ROOT\Scripting.FileSystemObject key or the problem will return