2017年8月23日

PowerShell管理IIS(新建站点、应用程序池、应用程序、虚拟目录等)

摘要: 1 #导入IIS管理模块 2 Import-Module WebAdministration 3 4 5 #新建应用程序池 api.dd.com 6 New-Item iis:\AppPools\api.dd.com 7 Set-ItemProperty iis:\AppPools\api.dd.c 阅读全文

posted @ 2017-08-23 14:40 风云无敌 阅读(1549) 评论(0) 推荐(0)

Power shell 重启IIS

摘要: 最近根据项目需要写了一段power shell的代码 ,主要功能是批量重启IIS 具体的 Power shell 服务如下: write-output 'Restarting IIS servers ................ ' $servers= 'server1' ,'Server2' 阅读全文

posted @ 2017-08-23 14:36 风云无敌 阅读(1075) 评论(0) 推荐(0)

导航