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
This fixed my problem as well… Thanks a bunch!
Jason(Quote)
Many thanks, this also solved my WSH problem.
Paul Payne(Quote)
THANK YOU, THANK YOU, THANK YOU!!! I’ve been trying to install xampp for a day, and that did the trick!
Brian Mills(Quote)