Solved

ActiveX can't create object Scripting.FileSystemObject

Posted on 2006-07-09
6
1,734 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 70

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

910 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now