WBEM ConnectServer taking too long.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Paul Hulatt (paul_at_hulatt.co.uk)
Date: 04/19/04


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



Relevant Pages

  • Re: Deploying ClickOnce is failing on web server
    ... I don't know why I can deploy to a remote server OK and the install from ... deployment properties. ... about how my IIS is setup, how about telling EXACTLY how to configure IIS ...
    (microsoft.public.dotnet.general)
  • Re: can i make a wmi application with asp?
    ... > environment is in default config. ... IIS is not running on a domain controller. ... If you can "get data from a remote server" as an anonymous user then ... Kerberos delegation is NOT a default, ...
    (microsoft.public.win32.programmer.wmi)
  • problem accesing to a folder in another machine
    ... in a remote server. ... I give permission for the pdf's folder to every domain user. ... AS I think it's a problem of authentication of the IIS User, ... System.Security.Principal.WindowsImpersonationContext impersonationContext; ...
    (microsoft.public.dotnet.security)
  • Re: IIS logging to remote server
    ... >server, but IIS doesn't allow changing to logging to a remote server, so I ... >got myself a copy of metaedit and changed it, it took the change but IIS is ...
    (microsoft.public.inetserver.iis.security)