Compartilhar via


Web Deploy webServer Provider

Applies To: Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP

webServer

The webServer provider synchronizes two IIS 7 Web servers.

Example

msdeploy -verb:sync -source:webServer -dest:webServer,computerName=WebServer1

The webServer provider returns all the contents of a Web server or synchronizes its contents from a source Web server to a destination Web server. The webServer provider can be used with IIS 7 or IIS 7.5 Web servers. webServer uses the following providers to implement its functionality. For more information about each of these, see the related links in the See Also section.

  • appHostConfig

  • appHostSchema

  • cert

  • contentPath

  • gacAssembly

  • machineConfig32

  • machineConfig64

  • rootWebConfig32

  • rootWebConfig64

In addition, the webServer provider includes server level registry keys and installed components from the source server.

To copy only the configuration settings from server to server, but not the Web content, include -disableLink:ContentExtension in your Web Deploy command. For more information about link extensions, see Web Deploy Link Extensions.

Warning

The getDependencies method will not show FTP Server as an IIS 6.0 dependency if you specify webServer60 or webServer for the -source argument. Instead, you must use the metaKey provider, as in the following example.
msdeploy -verb:getDependencies -source:metaKey=lm/msftpsvc -xml

Example usages

1) Display an IIS 7.5 Web server configuration and registry paths.

msdeploy -verb:dump -source:webServer

2) Synchronize an IIS 7 Web server between two computers.

msdeploy -verb:sync -source:webServer -dest:webServer,computerName=Server2

See Also

Concepts

Web Deploy appHostConfig Provider
Web Deploy appHostSchema Provider
Web Deploy gacAssembly Provider
Web Deploy machineConfig32 Provider
Web Deploy machineConfig64 Provider
Web Deploy rootWebConfig32 Provider
Web Deploy rootWebConfig64 Provider