Warning: Undefined array key "is_rate_editable" in /home/vhosts/itexperience.net/httpdocs/wp-content/plugins/wpdiscuz/class.WpdiscuzCore.php on line 1303
Error 80070005: can't create object 'Scripting.FileSystemObject' in Windows Script Host - itexperience.net

Error 80070005: can’t create object ‘Scripting.FileSystemObject’ in Windows Script Host

After applying a few Microsoft patches to one of my desktops, I could not load my login script (.wsf) anymore. When I ran my login script, the following error occurred:

Windows Script Host
Error: Can’t create object: ‘Scripting.FileSystemObject’
Code: 80070005
Source: WScript.CreateObject

Since the login script has been working for years, I knew something got messed up on my desktop. My quick and dirty solution was to re-register scrrun.dll which is often the file that gives me trouble. To re-register scrrun.dll, do the following:

  1. Click Start, click Run, type ‘cmd’, click OK
  2. Type cd \windows\system32 and press ENTER. This moves you to the System32 directory (C:\Windows\System32\)
  3. Type regsvr32.exe scrrun.dll . This reregisters the scrrun.dll file. You get a notification that the registration completed succesfully (good job! 🙂 )

When I tried to run the WSF file again, everything was fine again. And thank you, Windows Update, for causing an additional incident during my job day 🙂

To make this post complete, one of these updates caused the problem:

  • KB979895
  • KB978380
  • KB890830
  • KB978382
  • KB975561
0 0 votes
Article Rating
Subscribe
Notify of
guest
7 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Brian Mills

THANK YOU, THANK YOU, THANK YOU!!! I’ve been trying to install xampp for a day, and that did the trick!

Paul Payne

Many thanks, this also solved my WSH problem.

Jason

This fixed my problem as well… Thanks a bunch!

Tony

Thanks, this helped me A LOT.

Vivek Rajan

Thanks a lot – you are a life saver.

BRB

You are The God!

But the next time copy the whole error message exactly as it appears, otherwise it is hard to find it on Google.

Could not create object named “Scripting.FileSystemObject”

Hugo Madureira

Thanks a lot! Had been giving me headaches for quite some time 🙂 It also solved a problem when installing USB 3G modem … 2 in 1 solution!!!

7
0
Would love your thoughts, please comment.x
()
x