Web Server (IIS) Administration Cmdlets in Windows PowerShell
Windows PowerShell® is a task-based command-line shell and scripting language designed especially for system administration. This reference topic for the information technology (IT) professional provides assistance in utilizing the Windows PowerShell cmdlets to script and automate tasks.
Web Server server (IIS) Administration administration Cmdlets cmdlets in Windows PowerShellserver administration cmdlets
The Web Server Administration module (WebAdministration) 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, websites, 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 you can find run-time data, such as the currently running worker processes, application domains, and requests. The Sites folder contains website folders, as well as applications and virtual directories.
This section lists the cmdlets in the IIS module for Windows PowerShell.
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 | Description |
---|---|
Adds a collection element to an IIS configuration collection. |
|
Locks an IIS configuration section or element. |
|
Adds a property to an IIS configuration section. |
|
Creates a backup of an IIS configuration. |
|
Removes all settings for the central certificate provider. |
|
Removes configuration settings from a configuration location. |
|
Clears the request tracing configuration from a website. |
|
Clears the request tracing configuration from a website. |
|
Converts an IIS virtual directory to an IIS web application. |
|
Takes the central certificate provider offline. |
|
Disables an IIS module. |
|
Disables request tracing for a website. |
|
Enables a central certificate provider. |
|
Enables an IIS module. |
|
Enables request tracing for a website. |
|
Gets the application domains in which the specified IIS worker process is running. |
|
Gets the web applications associated with a specific site or with a specified name. |
|
Gets the run-time state of an IIS application pool. |
|
Gets the bindings on an IIS site. |
|
Retrieves the configuration settings of the central certificate provider. |
|
Gets the file system path of the web.config file. |
|
Gets an IIS configuration element. |
|
Gets a list of available IIS configuration backups. |
|
Gets the location of a configuration setting. |
|
Gets the lock status of an IIS configuration location. |
|
Gets an IIS configuration property at a path. |
|
Gets the physical path to the location of the specified IIS module. |
|
Gets the global modules configured in IIS, or information about a specific module. |
|
Gets IIS request handlers. |
|
Gets the run-time state of a site or an application pool. |
|
Gets the managed modules that are configured for a particular application. |
|
Gets the IIS requests that are currently being run. |
|
Gets configuration information for an IIS website. |
|
Gets the state of an IIS website. |
|
Gets information about the URL associated with a website. |
|
Gets the list of virtual directories on the specified site. |
|
Creates an IIS web application. |
|
Creates an IIS application pool. |
|
Adds a binding to a website. |
|
Creates an FTP 7 site. |
|
Creates an IIS global module. |
|
Creates an IIS request handler. |
|
Adds a new managed module to the IIS request pipeline. |
|
Creates an IIS website. |
|
Creates a virtual directory in IIS. |
|
Removes a web application from an IIS website. |
|
Removes an application pool from IIS. |
|
Removes a binding from an IIS website. |
|
Removes an existing IIS configuration backup. |
|
Removes an IIS configuration location. |
|
Removes a lock on configuration settings. |
|
Removes an IIS configuration property. |
|
Removes an IIS module. |
|
Removes a request handler from IIS. |
|
Removes a managed module from IIS. |
|
Removes an IIS website. |
|
Removes an IIS virtual directory. |
|
Renames a configuration location. |
|
Restarts an application pool. |
|
Restarts an application pool or a website. |
|
Restores an IIS configuration backup. |
|
Returns IIS configuration objects. |
|
Changes a property of an IIS site binding. |
|
Changes the configuration settings for the central certificate provider. |
|
Changes the user-account credentials for the central certificate provider. |
|
Changes the value of an IIS configuration element. |
|
Changes the value of an IIS configuration property. |
|
Specifies configuration settings for an IIS module. |
|
Configures an IIS request handler. |
|
Configures an IIS managed module. |
|
Starts an application pool. |
|
Instructs the IIS configuration system to delay the commitment of changes. |
|
Starts an application pool or a website. |
|
Starts an IIS website. |
|
Stops an application pool. |
|
Instructs the IIS configuration system to resume the commitment of changes. |
|
Stops a site or an application pool. |
|
Stops an IIS website. |
Note
To list all the cmdlets that are available, use the Get-Command *-Web*
cmdlet.
For more information about, or for the syntax of, any of the cmdlets, use the Get-Help
<cmdlet name> cmdlet, where <cmdlet name> is the name of the cmdlet that you want to research. For more detailed information, you can run any of the following cmdlets:
● Get-Help
<cmdlet name> -Detailed
● Get-Help
<cmdlet name> -Examples
● Get-Help
<cmdlet name> -Full