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:
- Click Start, click Run, type ‘cmd’, click OK
- Type cd \windows\system32 and press ENTER. This moves you to the System32 directory (C:\Windows\System32\)
- 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
THANK YOU, THANK YOU, THANK YOU!!! I’ve been trying to install xampp for a day, and that did the trick!
Many thanks, this also solved my WSH problem.
This fixed my problem as well… Thanks a bunch!
Thanks, this helped me A LOT.
Thanks a lot – you are a life saver.
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”
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!!!