script error
- From: "Calvin" <e6v1@xxxxxxxxx>
- Date: Mon, 21 Apr 2008 16:43:21 +0800
I have try to run the script on a remote computer, but it return the
error... any idea what's wrong? I can confirm that the remote computer is up
and running and the IP address is correct.
Error:
c:\scripts\remote.vbs(10,5) (null): 0x80041003
My script like such:
' On Error Resume Next
intStartingAddress = 220
intEndingAddress = 220
strSubnet = "192.168.1."
For i = intStartingAddress to intEndingAddress
strComputer = strSubnet & i
Set objWMIService = GetObject _
("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
("Select * From Win32_OperatingSystem")
For Each objItem in ColItems
Wscript.Echo strComputer & ": " & objItem.Caption
Next
Next
.
- Follow-Ups:
- Re: script error
- From: Tom Lavedas
- Re: script error
- Prev by Date: Get information about GPO policies
- Next by Date: Re: Get information about GPO policies
- Previous by thread: Get information about GPO policies
- Next by thread: Re: script error
- Index(es):
Relevant Pages
|