https://technet.microsoft.com/en-us/library/ee790599.aspx

Web Server (IIS) Administration Cmdlets in Windows PowerShell

The Web Server Administration module for Windows PowerShell includes the Internet Information Services (IIS) cmdlets that let you manage the configuration and run-time data of IIS. It implements a namespace hierarchy containing Application Pools, Web sites, Web applications and virtual directories.

The IIS module implements one virtual drive named IIS. The root virtual folders are AppPools and Sites. Within the AppPools folder, run-time data, such as the currently running worker processes, application domains, and requests can be found. The Sites folder contains Web site folders, as well as applications and virtual directories.

By default, Windows PowerShell modules and snap-ins are not loaded in Windows PowerShell. To start Windows PowerShell so that all the Windows PowerShell modules and snap-ins are loaded automatically, right-click the Windows PowerShell icon in the taskbar, and then click Import all modules. In Windows Server 2008 R2, the Windows PowerShell icon is pinned to the taskbar by default. However, you must start Windows PowerShell one time to make the Import all modules task appear.

You can manually add the IIS Module to the instance of Windows PowerShell that you have opened by using the following command at the command prompt: C:\PS>add-pssnapin WebAdministration.

IIS cmdlets

This section lists the IIS module for Windows PowerShell cmdlets in IIS 7.

To use the Windows PowerShell cmdlets for IIS, you must be a member of the IIS Administrators or Administrators group, or you must have been delegated the appropriate authority.

Cmdlet name Description

Add-WebConfiguration

Adds a collection element to an IIS configuration collection.

Add-WebConfigurationLock

Locks an IIS configuration section or element.

Add-WebConfigurationProperty

Adds a property to an IIS configuration section.

Backup-WebConfiguration

Creates a backup of an IIS configuration.

Begin-WebCommitDelay

Instructs the IIS configuration system to delay the commitment of changes.

Clear-WebConfiguration

Removes configuration settings from the configuration location specified.

Clear-WebRequestTracingSettings

Clears the Request Tracing configuration from the specified Web site.

ConvertTo-WebApplication

Converts an IIS virtual directory to an IIS Web application.

Disable-WebGlobalModule

Disables the specified IIS module.

Disable-WebRequestTracing

Disables Request Tracing for the site specified.

Enable-WebGlobalModule

Enables the specified IIS module.

Enable-WebRequestTracing

Enables Request Tracing for the site specified.

End-WebCommitDelay

Instructs the IIS configuration system to resume the commitment of changes.

Get-WebAppDomain

Gets the application domains in which the specified IIS worker process is running.

Get-WebApplication

Gets the Web applications associated with a specific site or with the name specified.

Get-WebAppPoolState

Gets the run-time state of an IIS application pool.

Get-WebBinding

Gets the bindings on the specified IIS site.

Get-WebConfigFile

Gets the file system path of the Web.config file.

Get-WebConfiguration

Gets an IIS configuration element at the specified path.

Get-WebConfigurationBackup

Gets a list of available IIS configuration backups.

Get-WebConfigurationLocation

Gets the location of a specified configuration setting.

Get-WebConfigurationLock

Gets the lock status of the specified IIS configuration location.

Get-WebConfigurationProperty

Gets an IIS configuration property at the specified path.

Get-WebFilePath

Gets the physical path to the location of the specified IIS module.

Get-WebGlobalModule

Gets the global modules configured in IIS.

Get-WebHandler

Gets IIS Request Handlers.

Get-WebItemState

Gets the run-time state of a site or an application pool.

Get-WebManagedModule

Gets the managed modules that are configured for a particular application.

Get-WebRequest

Gets the IIS requests that are currently being executed.

Get-Website

Gets configuration information for an IIS Web site.

Get-WebsiteState

Gets the state of an IIS Web site.

Get-WebURL

Gets information about the URL associated with the specified Web site.

Get-WebVirtualDirectory

Gets the list of virtual directories on the specified site.

New-WebApplication

Creates a new IIS Web application.

New-WebAppPool

Creates a new IIS application pool.

New-WebBinding

Adds a new Web site binding to an existing Web site.

New-WebFtpSite

Create a new FTP 7 Site

New-WebGlobalModule

Creates a new IIS module.

New-WebHandler

Creates a new IIS Request Handler configuration entry.

New-WebManagedModule

Adds a new managed module to the IIS request pipeline.

New-Website

Creates a new IIS Web site.

New-WebVirtualDirectory

Creates a new IIS virtual directory.

Remove-WebApplication

Removes an IIS Web application.

Remove-WebAppPool

Removes an IIS application pool.

Remove-WebBinding

Removes a binding from an IIS Web site.

Remove-WebConfigurationBackup

Removes an existing IIS configuration backup.

Remove-WebConfigurationLocation

Removes an IIS configuration location.

Remove-WebConfigurationLock

Removes a lock on configuration settings.

Remove-WebConfigurationProperty

Removes an IIS configuration property.

Remove-WebGlobalModule

Removes an IIS module.

Remove-WebHandler

Removes and IIS Request Handler.

Remove-WebManagedModule

Removes an IIS managed module.

Remove-Website

Removes an IIS Web site.

Remove-WebVirtualDirectory

Removes an IIS virtual directory.

Rename-WebConfigurationLocation

Renames a configuration location.

Restart-WebAppPool

Recycles an application pool.

Restart-WebItem

Restarts an application pool or a Web site.

Restore-WebConfiguration

Restores an IIS configuration backup.

Select-WebConfiguration

Returns Web configuration objects.

Set-WebBinding

Changes a property of an IIS site binding.

Set-WebConfiguration

Sets the value of an IIS configuration element.

Set-WebConfigurationProperty

Changes the value of an IIS configuration property.

Set-WebGlobalModule

Sets configuration settings for an IIS module.

Set-WebHandler

Configures an IIS request handler.

Set-WebManagedModule

Configures an IIS managed module.

Start-WebAppPool

Starts an application pool.

Start-WebItem

Starts an application pool or a site.

Start-Website

Starts an IIS Web site.

Stop-WebAppPool

Stops an application pool.

Stop-WebItem

Stops an application pool or a site.

Stop-Website

Stops an IIS Web site.

Web Server (IIS) Administration Cmdlets in Windows PowerShell的更多相关文章

  1. Unable to connect to web server 'IIS Express'(无法连接到Web服务器“IIS Express”)的解决方式-Jexus Manager

    在运行微软示例工程eShopOnWeb时候, 在经过一段时间再运行启动报Error "Unable to connect to web server 'IIS Express'"  ...

  2. Installing IIS 8.5 on Windows Server 2012 R2

    原文 Installing IIS 8.5 on Windows Server 2012 R2 Introduction This document describes how to install ...

  3. 部署 Windows PowerShell Web 访问

    部署 Windows PowerShell Web 访问 适用对象:Windows Server 2012, Windows Server 2012 R2 Windows PowerShell® We ...

  4. 阿里云服务器Windows Server 2008/2012部署Office Web Server 2013

    以前成功将Office Web Server 2013部署在了本地服务器上,此次是将Office Web Server 2013部署在阿里云服务器Windows Server 2008和2012上,中 ...

  5. Web Server 在iis下部署php网站在iis下

    Web Server  在iis下部署php网站在iis下 一.参考地址: windows8 http://www.cnblogs.com/haocool/archive/2012/10/14/win ...

  6. Windows server iis部署Django详细操作

    教程基于Windows server2012+Python3.6+IIS之上部署django的,同样适用于server2012之上的版本服务器和windows7以上的windows操作系统. 文章来自 ...

  7. vs默认VS Development Sever和用IIS Web Server的一点差别

    关于VS Development Server(vs调试默认运行环境)和IIS Web Server 做运行服务器时,请求处理的一点区别. 将请求粗略分为两类:静态资源请求和动态资源请求. 静态资源请 ...

  8. [SDK2.2]Windows Azure Virtual Network (4) 创建Web Server 001并添加至Virtual Network

    <Windows Azure Platform 系列文章目录> 在上一章内容中,笔者已经介绍了以下两个内容: 1.创建Virtual Network,并且设置了IP range 2.创建A ...

  9. Unable to launch the IIS Express Web server

    尝试运行程序,出现此异常提示Unable to launch the IIS Express Web server. 解决问题,是把网址修改为另一个试试: 把http://localhost:1114 ...

随机推荐

  1. powershell利用winform批量执行tsql语句

    #加载.net的winform模块 [Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") $app= ...

  2. C++ —— 库函数的 语法解析

    1.__declspec 用法总结 链接:http://blog.chinaunix.net/uid-24517893-id-2749061.html 详解2:http://www.01yun.com ...

  3. 【建模】UML类关系分析

    一.UML类关系分析 1.关联(asociation) 一般是一方拥有另一方对象的指针.箭头的方向是访问方向. 2.聚合(Aggregation)和组合(Composition) 聚合和关联一般不做区 ...

  4. UVa 11063 - B2-Sequence

    题目:给你一组数据{ b1,b2....,bk }中,推断是否随意两个数字的和都不同. 分析:数论.计算出全部结果,排序推断相邻结果是否同样就可以. 说明:注意数据的合法性检查. #include & ...

  5. 工作的准备:atoi,itoa,strcpy,memcpy,strcmp,二分查找,strcat

    对常见的几个函数,周末没事写写,绝对是笔试面试中非频繁,前面n届学长无数次强调了,大家就别怀疑了.从今天开始,每天10道题. int atoi(const char* str) { if(str==N ...

  6. [转] 为什么医疗咨询服务公司Evolent Health仅用4年就华丽上市?

    让医疗主体,即医院和医生担任保险角色,完全控制保费,实现医疗机构的利益最大化.美国公司EvolentHealth帮助所有医院实现这一梦想. 不觉间,已步入2015的下半年.当国内还在讨论商业保险何时能 ...

  7. Activity内部Handler引起内存泄露的原因分析

    有时在Activity中使用Handler时会提示一个内存泄漏的警告,代码通常如下: public class MainActivity extends Activity { private Text ...

  8. HTTP知识点总结

    参考: HTTP协议详解:http://blog.csdn.net/gueter/article/details/1524447 图解HTTP学习笔记——简单的HTTP协议:http://networ ...

  9. sass笔记-2|Sass基础语法之让样式表更具条理性和可读性

    这一篇主要详述保持sass条理性和可读性的3个最基本方法--嵌套.导入和注释. 零. 变量 变量本身的作用是为了保持属性值的可维护性,把所有需要维护的属性值放在同一个地方,快速更改,处处生效,可谓售后 ...

  10. 【网络流#3】hdu 1532 - Dinic模板题

    输入为m,n表示m条边,n个结点 记下来m行,每行三个数,x,y,c表示x到y的边流量最大为c 这道题的模板来自于网络 http://blog.csdn.net/sprintfwater/articl ...