#DirectoryEntry

DirectoryEntry_Properties属性的遍历(win2008)

DirectoryEntryroot=newDirectoryEntry(@"IIS://localhost/W3SVC");stringPInfo="";foreach(stringelmentNameinroot.Properties.PropertyNames){PropertyValueCollectionva...

DirectoryEntry_Properties属性的遍历(win2003)

DirectoryEntryroot=newDirectoryEntry(@"IIS://localhost/W3SVC");stringPInfo="";foreach(stringelmentNameinroot.Properties.PropertyNames){PropertyValueCollectionva...

C#使用DirectoryEntry类操作Windows帐户

1.创建windows帐户123456789101112131415///<summary>///创建Windows帐户///</summary>///<paramname="pathname"></param>///<returns></returns...