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

Leave a Reply

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

Notify of
Sort by:   newest | oldest | most voted
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!!!


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”

Vivek Rajan

Thanks a lot – you are a life saver.


Thanks, this helped me A LOT.


This fixed my problem as well… Thanks a bunch!

Paul Payne

Many thanks, this also solved my WSH problem.

Brian Mills

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