WBEM ConnectServer taking too long.
From: Paul Hulatt (paul_at_hulatt.co.uk)
Date: 04/19/04
- Next message: Troy Jerkins: "Creating Remote processes"
- Previous message: Paul Jenkins: "Re: Monitor Remote Server for Windows Event(s) - VBScript Example?"
- Next in thread: Ivan Brugiolo [MSFT]: "Re: WBEM ConnectServer taking too long."
- Reply: Ivan Brugiolo [MSFT]: "Re: WBEM ConnectServer taking too long."
- Messages sorted by: [ date ] [ thread ]
Date: 19 Apr 2004 08:34:57 -0700
I have a requirement to connect to a remote server (in the same
domain) and modify a IIS (IIS6 on Win2003) websites IPDeny list and
WMI seems the best way to achieve this.
I have a created a script which does exactly what I need which works
flawlessly on my development station (WinXP Pro), however when I copy
the script onto the target machine (NT4) and run it, it takes
approximately 6 minutes to connect to the remote machine
(ConnectServer call below). Once connected, everything works as
expected.
Can anyone shed any light on why it takes so long for the
ConnectServer command to complete or what I can do to fix it? The
code I use is: -
Set lctr = CreateObject("WbemScripting.swbemLocator")
Set IIS = lctr.Connectserver(txtServer.Text,
"root\MicrosoftIISv2", usr, pwd)
Set IISSec = IIS.get("IIsIPSecuritySetting='W3SVC/2/root'")
Thanks in advance.
Paul
- Next message: Troy Jerkins: "Creating Remote processes"
- Previous message: Paul Jenkins: "Re: Monitor Remote Server for Windows Event(s) - VBScript Example?"
- Next in thread: Ivan Brugiolo [MSFT]: "Re: WBEM ConnectServer taking too long."
- Reply: Ivan Brugiolo [MSFT]: "Re: WBEM ConnectServer taking too long."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|