Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DirectoryEntry de = new DirectoryEntry("IIS://localhost/W3SVC");
- foreach (DirectoryEntry child in de.Children)
- {
- if (child.SchemaClassName == "IIsWebServer")
- {
- Response.Write(child.Properties["ServerComment"].Value + "<br/>");
- }
- }
Add Comment
Please, Sign In to add comment