Patches item #1855000, was opened at 2007-12-20 11:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474853&aid=1855000&group_id=54790

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: David Garrett (davidmgarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix Access Denied - WMI ApplicationPool Remote Management

Initial Comment:
There has been a change in the IIS WMI provider for Windows Server 2003 SP 1 
and Windows XP SP2 that requires customers to update WMI-based scripts that 
operate over a remote connection. Network encryption for WMI is on by default. 
If you create an application or script that is intended to administer IIS on a 
remote computer running Windows Server 2003 SP1 or later, you must use the 
AuthenticationLevel property. WMI-based scripts that do not encrypt the 
connection 
when administering IIS remotely fail with an Access Denied error 
(WBEM_E_ACCESS_DENIED, 0x80041003). 
 
http://msdn2.microsoft.com/en-us/library/ms525413.aspx
http://msdn2.microsoft.com/en-us/library/system.management.connectionoptions.authentication.aspx


When Creating a ManagementScope to IIS, AuthenticationLevel.PacketPrivacy must 
now be used.


Changed File:  \src\Tasks\Web\ApplicationPool.cs

Old:

        private ManagementScope Scope {
            get {
                return new ManagementScope (@"\\" + Server + 
"\\root\\MicrosoftIISv2");
            }
        }

New:

        private ManagementScope Scope {
            get {
                ConnectionOptions options = new ConnectionOptions();
                options.Authentication = 
System.Management.AuthenticationLevel.PacketPrivacy;

                return new ManagementScope (@"\\" + Server + 
"\\root\\MicrosoftIISv2", options);
            }
        }

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474853&aid=1855000&group_id=54790

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NAntContrib-Developer mailing list
NAntContrib-Developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Reply via email to