Re: Error 8007007E WScript.Network Wscript.CreateObject
- From: "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 10 Mar 2008 21:23:08 -0500
"Tom Lavedas" <tglbatch@xxxxxxx> wrote in message
news:4d07ee89-1ba0-4909-8154-de7dd33be37d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Mar 10, 2:12 pm, "Saucer Man" <saucer...@xxxxxxxxxx> wrote:
I am getting an error in my .vbs script. The error is "Could not create
object named "WScript.Network". The code is 8007007E. The source is
WScript.CreateObject. The program errors on the "Set" line of code
below.
Dim objNetwork
Set objNetwork = WScript.CreateObject("WScript.Network")
However, if I add a drive mapping on my PC to a network share hosting a
company application, the script runs. As soon as I delete the mapping,
the
script fails. Why is this happening? Why does mapping this drive allow
the
script to run without errors?
--
Thanks!
I found this at MSDN:
Error code 0x8007007f or error code 0x8007007e
This problem frequently occurs after you upgrade a service pack. After
you upgrade, there appears to be a corrupted file, a missing file, or
a file mismatch.
Workaround for error code 0x8007007f or error code 0x8007007e
To work around this problem, uninstall the service pack that you
installed. Then, reinstall the service pack.
It seems to be and unhandled exception related to "The specified
module could not be found. (Exception from HRESULT: 0x8007007E)"
I don't know whether that helps.
Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/
If Tom's suggestion doesn't help, what is the operating system on the
computer. Also, how do you configure the logon scripts to run - using the
"Logon script" field on the "Profile" tab of ADUC or in a Group Policy.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
.
- References:
- Error 8007007E WScript.Network Wscript.CreateObject
- From: Saucer Man
- Re: Error 8007007E WScript.Network Wscript.CreateObject
- From: Tom Lavedas
- Error 8007007E WScript.Network Wscript.CreateObject
- Prev by Date: Re: Editing users UPN via script
- Next by Date: Re: Editing users UPN via script
- Previous by thread: Re: Error 8007007E WScript.Network Wscript.CreateObject
- Next by thread: Re: script to search text
- Index(es):
Relevant Pages
|