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"
Who is Participating?
If you can run it as an Admin and not a regular user you are more than likely fighting a group policy setting and/or file/folder/registry permissions.

The "group policy management console" is downloadable from MS and is a great way to ferret these settings out.  Look for something in the software restrictions policies or "do not run the programs" section.  Maybe try an RSOP for that machine and see if any settings are applied.

Check the permissions on the dll file itself, see if a regular user can browse to it.  The dll file you are calling for that object is scrrun.dll, it sits in C:\Windows\System32 by default.  Put a deny permission on that file and you will get the same error as an administrator.

Another thought is that there may be permissions restricting the user on the registry key with this component, HKEY_CLASSES_ROOT\Scripting.FileSystemObject, or no permissions at all.  Open regedit and deny yourself permissions for that key and yet again you get the access denied message.

Give me a shout back with your test results.
Guy Hengel [angelIII / a3]Billing EngineerCommented:
jesimonAuthor Commented:
I have already seen that article.  IIS is not involved.
Shane Russell2nd Line Desktop SupportCommented:
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
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.