摘要: IIS属性解析 KeyType[0] =IisWebVirtualDir // Schema类名表明操作的目录类型 // 【虚拟目录】 Path[0] =D:/WebSiteTest // 虚拟目录|本地路径 // .NET对应属性如下,其中de为虚拟目录对应的DirectoryEntry对象 de 阅读全文
posted @ 2017-08-14 18:44 简单就好。。。 阅读(419) 评论(0) 推荐(0) 编辑
摘要: //创建管理用户 public string CreateUser(string sys_username, string sys_passwd) { try { DirectoryEntry AD = new DirectoryEntry("WinNT://" + Environment.Mach 阅读全文
posted @ 2017-08-14 18:42 简单就好。。。 阅读(1211) 评论(0) 推荐(0) 编辑
摘要: 无法连接到WMI 提供程序 请注意,你只能使用SQL Server 配置管理器来管理SQL Server 2005服务器。找不到指定的模块。[0x8007007e] 解决方案1: 检查一下 windows下的system32 中是否有framedyn.dll这个系统文件,如果没有到system32  阅读全文
posted @ 2016-07-01 10:18 简单就好。。。 阅读(20335) 评论(1) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Net; using System.Windows.Forms; using System.Globali 阅读全文
posted @ 2016-06-17 14:16 简单就好。。。 阅读(2101) 评论(0) 推荐(0) 编辑
摘要: @echo off title mysql ::从注册表找到Mysql的安装路径写入文件mysql.txt reg query HKLM\SYSTEM\ControlSet001\Services\MySQL | find /I "ImagePath">C:\mysql.txt if %errorl 阅读全文
posted @ 2016-06-02 15:38 简单就好。。。 阅读(1493) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 添加站点限制IP /// </summary> /// <param name="sitename">站点名称</param> /// <param name="xzip">限制IP</param> /// <param name="type">是否授权还是限制 阅读全文
posted @ 2016-06-02 15:35 简单就好。。。 阅读(2222) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 清理回收站垃圾 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button1_Click(object sender, Even 阅读全文
posted @ 2016-05-06 17:52 简单就好。。。 阅读(643) 评论(0) 推荐(0) 编辑
摘要: //IIS7完全安装 start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS- 阅读全文
posted @ 2016-05-04 15:21 简单就好。。。 阅读(7242) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 创建数据库 /// </summary> /// <param name="dbname"></param> /// <param name="dbpath"></param> /// <returns></returns> public string Creat 阅读全文
posted @ 2016-04-27 18:29 简单就好。。。 阅读(282) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取本地IIS版本 /// </summary> /// <returns></returns> public string GetIIsVersion() { try { DirectoryEntry entry = new DirectoryEntry("II 阅读全文
posted @ 2016-04-27 18:19 简单就好。。。 阅读(579) 评论(0) 推荐(0) 编辑