Solved

ActiveX can't create object Scripting.FileSystemObject

Posted on 2006-07-09
6
1,758 Views
Last Modified: 2012-06-27
Hello,

I'm trying to run some .vbs scripts on my home PC (Windows XP Professional SP2).  They used to work great, but now when I run them I get the following error:

ActiveX component can't create object: 'Scripting.FileSystemObject'

Let me just say this is not a coding issue, I'm well versed in proper syntax, and this script has worked in the past.  I've also done a lot of research on the internet about this problem, here's what I've tried, and doesn't work.

- Reinstalled WSH 5.6
- ran regsvr32 scrrun.dll
- I've gone into the registry editor and ensured my account has permission to the COM object as well.

I'm out of ideas, I'm just about to reformat my PC to fix this problem, but I'd rather like to avoid this!  Can anyone suggest something that I may have missed?

Thanks,
--Michael
0
Comment
Question by:raterus
6 Comments
 
LVL 11

Expert Comment

by:kelvinwkw
ID: 17070267
Check whether there is any script blocking programme installed in your pc, for instance Script blocking for Norton AntiVirus, it blocked the script and treat it as a malicious. Disabled the script blocking and try
0
 
LVL 25

Expert Comment

by:kevp75
ID: 17070345
i've also notice some spyware blockers that may block something like this....one in particular that comes to mind is SpyBot.  Definately try disabling your AV and then run the script
0
 
LVL 34

Accepted Solution

by:
sramesh2k earned 500 total points
ID: 17070415
Michael,

Do a complete registry backup using ERUNT, and then use SubInACL to reset the registry permissions.

http://www.google.com/search?&q=reset+registry+subinacl

Take a complete registry backup using ERUNT:
http://www.winxptutor.com/regback.htm
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 71

Expert Comment

by:Chris Dent
ID: 17071553

We get that on some of the PCs we use here for some reason. In some cases this MS Article has resolved the problem, but not in all cases:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q311269

Afraid I can't offer much beyond that, because I don't look after the PCs themselves I tend to just ask for them to be rebuilt if it's a persistant problem.

Chris
0
 
LVL 33

Author Comment

by:raterus
ID: 17071968
sramesh2k, as a last resort after looking at/trying the other comments here, I did this, it worked great to fix my problem.  I'm still not sure about what _else_ it may have done, but for now, this problem is fixed!
0
 
LVL 34

Expert Comment

by:sramesh2k
ID: 17072335
>> I'm still not sure about what _else_ it may have done

It resets the registry permission for the chosen hive, to defaults. Administrators and SYSTEM have full control over the keys. Nothing else should get affected.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
2 windows xp desktops computer 8 157
Looking to disable remote computers 6 82
Lock down IT Intern accounts 4 125
XP driver for Dell Color MFP H625cdw printer needed 7 190
If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question