Re: Error 8007007E WScript.Network Wscript.CreateObject

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"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
--


.



Relevant Pages

  • Re: Error 8007007E WScript.Network Wscript.CreateObject
    ... Dim objNetwork ... Set objNetwork = WScript.CreateObject ... company application, the script runs. ... This problem frequently occurs after you upgrade a service pack. ...
    (microsoft.public.scripting.vbscript)
  • Re: script to search text
    ... The program errors on the "Set" line of code below. ... Dim objNetwork ... Set objNetwork = WScript.CreateObject ... However, if I add a drive mapping on my PC to a network share hosting a company application, the script runs. ...
    (microsoft.public.scripting.vbscript)
  • Re: Question about looping a script
    ... Dim objNetwork ... Set objNetwork = CreateObject ... What I'd like to do is put in a loop command so it if it fails to map the G drive it keeps trying until it is successful. ... Wscript.Sleep 1000 'Pause Script for 1 second ...
    (microsoft.public.scripting.vbscript)
  • Quarantine VPN Users
    ... creating this script. ... ' CHECKS the OS Service Pack Level ... http://windowsupdate.microsoft.com and install the latest Windows XP service ... if x> hotfixqty then ...
    (microsoft.public.isa.configuration)
  • Re: Cannot find helpctr.exe Kblake
    ... Mark L. Ferguson ... on Microsoft to down load Service Pack 2 but my computer is set ... Dim jobfunc ... 'Set the Windows Script Host Shell and assign values to variables ...
    (microsoft.public.windowsxp.help_and_support)