当前位置首页 > IIS知识

WebServer(IIS)AdministrationCmdletsinWindowsPowerShell

阅读次数:229 次  来源:admin  发布时间:

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 cmdlet

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 Descriptio

Add-WebConfiguratio

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-WebConfiguratio

Creates a backup of an IIS configuration.

Begin-WebCommitDelay

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

Clear-WebConfiguratio

Removes configuration settings from the configuration location specified.

Clear-WebRequestTracingSetting

Clears the Request Tracing configuration from the specified Web site.

ConvertTo-WebApplicatio

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-WebAppDomai

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

Get-WebApplicatio

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-WebConfiguratio

Gets an IIS configuration element at the specified path.

Get-WebConfigurationBacku

Gets a list of available IIS configuration backups.

Get-WebConfigurationLocatio

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-WebApplicatio

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-WebApplicatio

Removes an IIS Web application.

Remove-WebAppPool

Removes an IIS application pool.

Remove-WebBinding

Removes a binding from an IIS Web site.

Remove-WebConfigurationBacku

Removes an existing IIS configuration backup.

Remove-WebConfigurationLocatio

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-WebConfigurationLocatio

Renames a configuration location.

Restart-WebAppPool

Recycles an application pool.

Restart-WebItem

Restarts an application pool or a Web site.

Restore-WebConfiguratio

Restores an IIS configuration backup.

Select-WebConfiguratio

Returns Web configuration objects.

Set-WebBinding

Changes a property of an IIS site binding.

Set-WebConfiguratio

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.

上一篇:vue项目部署到阿里云服务器(windows),Nginx代理!
下一篇:如何设置IIS7支持ASP?