摘要: using (DirectoryEntry comp = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer")) { int AccountCount = 0; foreach (Direct... 阅读全文
posted @ 2016-05-13 14:00 Shen_小沈 阅读(502) 评论(0) 推荐(0) 编辑
摘要: //开启服务、开启防火墙 public void OpenFileWall() { // 1. 判断当前系统为XP或Win7 RegistryKey rk = Registry.LocalMachine.OpenSubKey(@"Software\\Microsoft\\Windows NT\\Current... 阅读全文
posted @ 2016-05-13 13:51 Shen_小沈 阅读(6292) 评论(0) 推荐(0) 编辑