IIS management from C# - class library?

  • Thread starter Thread starter Dmitri Shvetsov
  • Start date Start date
D

Dmitri Shvetsov

Hi All,

Did somebody see a class library or something else like that to manage the
IIS settings - to backup/restore, to change properties, settings, to add
additional or to remove any virtual directories etc.? I need it for a
deployment tool, the admin login/password will be knows, its not a problem.

Dmitri
 
You have two options here, when running IIS6 , you can use both
System.Management (using the WMI provider) or System.DirectoryServices
(using the ADSI provider). When running IIS5.1 or 5.0 you can only use
System.DirectoryServices.
For more info on the WMI and ADSI providers checkfollowing URL's:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/iis/ref_mof_iiscomputer.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/iis/ref_mof_iiscomputer.asp

Willy.
 
Back
Top