ITExperience.NET Rotating Header Image

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

3 Comments

  1. Jason says:

    This fixed my problem as well… Thanks a bunch!

      (Quote)

  2. Paul Payne says:

    Many thanks, this also solved my WSH problem.

      (Quote)

  3. Brian Mills says:

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

      (Quote)

Leave a Reply