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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guy Hengel [angelIII / a3]Billing EngineerCommented:
jesimonAuthor Commented:
I have already seen that article.  IIS is not involved.
Shane Russell2nd Line Desktop SupportCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day 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
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.