Backup-WDApp
Creates a Web Deploy backup of an IIS web application.
Backup
WDApp
The Backup-WDApp cmdlet creates a backup of an IIS web application and saves it as a .zip package. The backup contains content and configuration of the given web application. By default, the backup will be stored in the current user's "My Documents" under a folder called "Web Deploy Backups". You can specify a web application on a remote IIS server as the source for the backup by providing a Web Deploy publish settings file for the source server. This publish settings file can be generated using the New-WDPublishSettings cmdlet.
Backup-WDApp
Application
Specifies the IIS web application to backup. For a remote application, this may be specified instead in the SourcePublishSettings Web Deploy publish settings file.
string
Output
Specifies the directory where the generated Web Deploy .zip file backup will be saved. If not specified, backups will be saved in the current user's "My Documents" under a folder called "Web Deploy Backups".
string
Debug
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SkipFileList
Specifies list of files to be skipped while taking backup.
String]
SkipFolderList
Specifies list of folders to be skipped while taking backup.
String]
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when backing up an IIS web application from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy IISApp provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253205 to learn about custom provider settings for IISApp provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as source, please specify following settings
AppHostConfigDir - Absolute path of directory containing ApplicationHost.config file for IIS Express
WebServerDir- Absolute path of directory containing application binaries for IIS Express
hashtable
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when backing up an IIS web application from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
SkipFileList
Specifies list of files to be skipped while taking backup.
String]
String]
ErrorVariable
string
string
Output
Specifies the directory where the generated Web Deploy .zip file backup will be saved. If not specified, backups will be saved in the current user's "My Documents" under a folder called "Web Deploy Backups".
string
string
Debug
SwitchParameter
SwitchParameter
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy IISApp provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253205 to learn about custom provider settings for IISApp provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as source, please specify following settings
AppHostConfigDir - Absolute path of directory containing ApplicationHost.config file for IIS Express
WebServerDir- Absolute path of directory containing application binaries for IIS Express
hashtable
hashtable
SkipFolderList
Specifies list of folders to be skipped while taking backup.
String]
String]
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
string
OutBuffer
int
int
OutVariable
string
string
Application
Specifies the IIS web application to backup. For a remote application, this may be specified instead in the SourcePublishSettings Web Deploy publish settings file.
string
string
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
$list = @('\\iisstart\.htm')
Backup-WDApp "Default web site/app" -SkipFileList $list
Description
-----------
Takes the backup of "Default web site/app" while skipping iisstart.htm file.
Backup-WDMySQLDatabase
Creates a Web Deploy backup of a MySQL database.
Backup
WDMySQLDatabase
The Backup-WDDatabase cmdlet creates a backup of a MySQL database as a script and saves it in a .zip package. It takes a database connection string as input to the Database parameter. By default, the backup will be stored in the current user's "My Documents" under a folder called "Web Deploy Backups".
Backup-WDMySQLDatabase
Database
Specifies the connection string for the database to backup.
string
Output
Specifies the directory where the generated Web Deploy .zip file backup will be saved. If not specified, backups will be saved in the current user's "My Documents" under a folder called "Web Deploy Backups".
string
Debug
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when backing up a database which must be accessed from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy
DBMySQL provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253202 to learn about custom provider settings for DBFullSQL provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when backing up a database which must be accessed from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
Output
Specifies the directory where the generated Web Deploy .zip file backup will be saved. If not specified, backups will be saved in the current user's "My Documents" under a folder called "Web Deploy Backups".
string
string
Debug
SwitchParameter
SwitchParameter
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy
DBMySQL provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253202 to learn about custom provider settings for DBFullSQL provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
hashtable
Database
Specifies the connection string for the database to backup.
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
string
OutBuffer
int
int
OutVariable
string
string
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
New-WDPublishSettings -ComputerName serverName -MySqlConnectionString "Data Source=localhost;database=MyDb;Uid=MyDbUser;pwd=MyPassword" -FileName d:\MySQLdb.PublishSettings -Credential serverName\Administrator
Backup-WDMySqlDatabase -SourcePublishSettings d:\mysqldb.publishsettings
Description
-----------
First commandlet will create a publish settings file and second one will use that to backup MyDb MySQL database
-------------------------- EXAMPLE 2 --------------------------
C:\PS>
Backup-WDMySQLDatabase -Database 'Server=localhost;Database=MyDb;Uid=MyDbUser;pwd=MyPassword'
Description
-----------
This example takes the backup of MyDB MySQL database from localhost.
Backup-WDServer
Creates a Web Deploy backup of an IIS Web server.
Backup
WDServer
The Backup-WDServer cmdlet creates a backup of an IIS Web server and saves it as a .zip package. The backup contains content and configuration of all the Web sites and applications present on the IIS server as well as the server level configuration of IIS. By default, the backup will be stored in the current user's "My Documents" under a folder called "Web Deploy Backups". You can specify a remote IIS server as the source for the backup by providing a Web Deploy publish settings file for the source server. This publish settings file can be generated using the New-WDPublishSettings cmdlet.
Backup-WDServer
Output
Specifies the directory where the generated Web Deploy .zip file backup will be saved. If not specified, backups will be saved in the current user's "My Documents" under a folder called "Web Deploy Backups".
string
ConfigOnly
If set, omits virtual directory content and backs up only configuration.
Debug
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SkipFileList
Specifies list of files to be skipped while taking backup.
String]
SkipFolderList
Specifies list of folders to be skipped while taking backup.
String]
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when backing up a remote IIS web server. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy WebServer provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253209 to learn about custom provider settings for WebServer provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Some other important settings are described below:
encryptPassword=<password>
The encryptPassword setting specifies a password to control access to encrypted properties in IIS configuration (for example, an application pool). <password> specifies an alphanumeric password.
hashtable
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
Confirm
Prompts you for confirmation before executing the command.
WhatIf
Describes what would happen if you executed the command without actually executing the command.
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when backing up a remote IIS web server. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
SkipFileList
Specifies list of files to be skipped while taking backup.
String]
String]
ErrorVariable
string
string
Output
Specifies the directory where the generated Web Deploy .zip file backup will be saved. If not specified, backups will be saved in the current user's "My Documents" under a folder called "Web Deploy Backups".
string
string
Debug
SwitchParameter
SwitchParameter
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy WebServer provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253209 to learn about custom provider settings for WebServer provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Some other important settings are described below:
encryptPassword=<password>
The encryptPassword setting specifies a password to control access to encrypted properties in IIS configuration (for example, an application pool). <password> specifies an alphanumeric password.
hashtable
hashtable
SkipFolderList
Specifies list of folders to be skipped while taking backup.
String]
String]
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ConfigOnly
If set, omits virtual directory content and backs up only configuration.
SwitchParameter
SwitchParameter
WarningVariable
string
string
OutVariable
string
string
OutBuffer
int
int
Confirm
Prompts you for confirmation before executing the command.
SwitchParameter
SwitchParameter
WhatIf
Describes what would happen if you executed the command without actually executing the command.
SwitchParameter
SwitchParameter
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
Backup-WDServer -SourcePublishSettings c:\profiles\myserver.publishsettings -ConfigOnly
Description
-----------
This example will back up everything of the web server except for the content
-------------------------- EXAMPLE 2 --------------------------
C:\PS>
$list = @('\\site2\\iisstart.htm','\\site3\\');
Backup-WDServer -SkipFileList $list
Description
-----------
Create a list of the files that should be skipped. This is standard regular expressions. While taking backup iisstart.htm will be excluded from site2 and all the files will be excluded from site3.
Backup-WDSite
Creates a Web Deploy backup of an IIS web site.
Backup
WDSite
The Backup-WDSite cmdlet creates a backup of an IIS web site and saves it as a .zip package. The backup contains content and configuration of the given web site and applications present within that web site. By default, the backup will be stored in the current user's "My Documents" under a folder called "Web Deploy Backups". You can specify a web site on a remote IIS server as the source for the backup by providing a Web Deploy publish settings file for the source server. This publish settings file can be generated using the New-WDPublishSettings cmdlet.
Backup-WDSite
Site
Specifies the IIS web site to backup. For a remote site, this may be specified instead in the SourcePublishSettings Web Deploy publish settings file.
string
Output
Specifies the directory where the generated Web Deploy .zip file backup will be saved. If not specified, backups will be saved in the current user's "My Documents" under a folder called "Web Deploy Backups".
string
ConfigOnly
If set, omits virtual directory content and backs up only configuration.
Debug
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
IncludeAppPool
If set, includes the IIS web site's application pool in the backup.
OutBuffer
int
OutVariable
string
SkipFileList
Specifies list of files to be skipped while taking backup.
String]
SkipFolderList
Specifies list of folders to be skipped while taking backup.
String]
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when backing up an IIS web site from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy AppHostConfig provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253198 to learn about custom provider settings for AppHostConfig provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Some other important settings are described below:
encryptPassword=<password>
The encryptPassword setting specifies a password to control access to encrypted properties in IIS configuration (for example, an application pool). <password> specifies an alphanumeric password.
Additionally, for using IIS Express as source, please specify following settings
AppHostConfigDir - Absolute path of directory containing the applicationHost.config file for IIS Express
WebServerDir- Absolute path of directory containing application binaries for IIS Express
hashtable
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
Confirm
Prompts you for confirmation before executing the command.
WhatIf
Describes what would happen if you executed the command without actually executing the command.
ErrorVariable
string
string
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
SkipFileList
Specifies list of files to be skipped while taking backup.
String]
String]
Site
Specifies the IIS web site to backup. For a remote site, this may be specified instead in the SourcePublishSettings Web Deploy publish settings file.
string
string
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy AppHostConfig provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253198 to learn about custom provider settings for AppHostConfig provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Some other important settings are described below:
encryptPassword=<password>
The encryptPassword setting specifies a password to control access to encrypted properties in IIS configuration (for example, an application pool). <password> specifies an alphanumeric password.
Additionally, for using IIS Express as source, please specify following settings
AppHostConfigDir - Absolute path of directory containing the applicationHost.config file for IIS Express
WebServerDir- Absolute path of directory containing application binaries for IIS Express
hashtable
hashtable
ConfigOnly
If set, omits virtual directory content and backs up only configuration.
SwitchParameter
SwitchParameter
SkipFolderList
Specifies list of folders to be skipped while taking backup.
String]
String]
Output
Specifies the directory where the generated Web Deploy .zip file backup will be saved. If not specified, backups will be saved in the current user's "My Documents" under a folder called "Web Deploy Backups".
string
string
OutBuffer
int
int
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when backing up an IIS web site from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
OutVariable
string
string
IncludeAppPool
If set, includes the IIS web site's application pool in the backup.
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
Verbose
SwitchParameter
SwitchParameter
Confirm
Prompts you for confirmation before executing the command.
SwitchParameter
SwitchParameter
WhatIf
Describes what would happen if you executed the command without actually executing the command.
SwitchParameter
SwitchParameter
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
Backup-WDSite "Default Web Site" -ConfigOnly
Description
-----------
This example will backup only configuration for default web site
-------------------------- EXAMPLE 2 --------------------------
C:\PS>
Backup-WDSite MySite -IncludeAppPool
Description
-----------
This example will backup Mysite including Application Pool Settings.
Backup-WDSQLDatabase
Creates a Web Deploy backup of an MSSQL database.
Backup
WDSQLDatabase
The Backup-WDDatabase cmdlet creates a backup of an MSSQL database as a script and saves it in a .zip package. It takes a database connection string as input to the Database parameter. By default, the backup will be stored in the current user's "My Documents" under a folder called "Web Deploy Backups".
Backup-WDSQLDatabase
Database
Specifies the connection string for the database to backup.
string
Output
Specifies the directory where the generated Web Deploy .zip file backup will be saved. If not specified, backups will be saved in the current user's "My Documents" under a folder called "Web Deploy Backups".
string
Debug
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when backing up a database which must be accessed from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
SourceSettings
Specifies custom scripting options to use while scripting out the database for the backup. More information on available settings may be found here: http://go.microsoft.com/fwlink/?LinkId=245684
hashtable
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
ErrorVariable
string
string
Output
Specifies the directory where the generated Web Deploy .zip file backup will be saved. If not specified, backups will be saved in the current user's "My Documents" under a folder called "Web Deploy Backups".
string
string
Debug
SwitchParameter
SwitchParameter
Database
Specifies the connection string for the database to backup.
string
string
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
OutBuffer
int
int
OutVariable
string
string
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when backing up a database which must be accessed from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
SourceSettings
Specifies custom scripting options to use while scripting out the database for the backup. More information on available settings may be found here: http://go.microsoft.com/fwlink/?LinkId=245684
hashtable
hashtable
Verbose
SwitchParameter
SwitchParameter
WarningVariable
string
string
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
New-WDPublishSettings -ComputerName serverName -MSSqlConnectionString "Data Source=localhost;Initial Catalog=MyDb;User id=MyDbUser;Password=MyPassword" -FileName d:\SQLdb.PublishSettings -Credential serverName\Administrator
Backup-WDSQLDatabase -SourcePublishSettings D:\SQLdb.PublishSettings
Description
-----------
First commandlet will create a publish settings file and second one will use that to backup MyDb sql database
-------------------------- EXAMPLE 2 --------------------------
C:\PS>
Backup-WDSQLDatabase -Database "Data Source=localhost;Initial Catalog=MyDb;User id=MyDBUser;Password=MyPassword" -SourceSettings @{ copyAllUsers='false';}
Description
-----------
This example will take a backup of MyDb SQL database on localhost. This example also specifies SourceSettings parameter to specify Web Deploy provider options for dbfullsql provider so that while creating backup database users will not be copied.
Copy-WDContent
Copies all the content belonging to specified site to specified destination
Copy
WDContent
The Copy-WDContent cmdlet copies all the content of an IIS web site or web application to specified destination. Destination could be another site/application specified by the TargetPath parameter. You can specify a web site on a remote IIS server as the source or target by providing a Web Deploy publish settings file for the source/destination server. This publish settings file can be generated using the New-WDPublishSettings cmdlet.
Copy-WDContent
SourcePath
Specifies source site for copying content
string
TargetPath
Specifies Target path for copying content, it can be a site or file.
string
Confirm
Debug
DestinationPublishSettings
Specifies Web Deploy publish settings file for target site.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy ContentPath provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253200 to learn about custom provider settings for ContentPath provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as destination, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing the applicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SkipFileList
Specifies list of files to be skipped while copying content.
String]
SkipFolderList
Specifies list of folders to be skipped while copying content.
String]
SourcePublishSettings
Specifies Web Deploy publish settings file for source site.
string
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy ContentPath provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253200 to learn about custom provider settings for ContentPath provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as source, please specify following settings
AppHostConfigDir - Absolute path of directory containing ApplicationHost.config file for IIS Express
WebServerDir- Absolute path of directory containing application binaries for IIS Express
hashtable
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
Debug
SwitchParameter
SwitchParameter
SourcePath
Specifies source site for copying content
string
string
WarningVariable
string
string
Confirm
SwitchParameter
SwitchParameter
SkipFileList
Specifies list of files to be skipped while copying content.
String]
String]
DestinationPublishSettings
Specifies Web Deploy publish settings file for target site.
string
string
WhatIf
SwitchParameter
SwitchParameter
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy ContentPath provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253200 to learn about custom provider settings for ContentPath provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as source, please specify following settings
AppHostConfigDir - Absolute path of directory containing ApplicationHost.config file for IIS Express
WebServerDir- Absolute path of directory containing application binaries for IIS Express
hashtable
hashtable
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy ContentPath provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253200 to learn about custom provider settings for ContentPath provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as destination, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing the applicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
hashtable
hashtable
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
TargetPath
Specifies Target path for copying content, it can be a site or file.
string
string
SkipFolderList
Specifies list of folders to be skipped while copying content.
String]
String]
OutBuffer
int
int
SourcePublishSettings
Specifies Web Deploy publish settings file for source site.
string
string
OutVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
Get-WDAppPoolFx
Gets the .NET Framework version of an application pool associated with an IIS web application.
Get
WDAppPoolFx
The Get-WDAppPoolFx cmdlet provides the .NET Framework version of an application pool associated with an IIS web application.
Get-WDAppPoolFx
Site
Specifies an IIS web site; the .NET framework version for this web site will be returned by the cmdlet. For a remote site, this may be specified instead in the SourcePublishSettings Web Deploy publish settings file.
string
Debug
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when getting the .NET Framework version for a remote IIS application pool. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy AppPoolNetFx provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253199 to learn about custom provider settings for AppPoolNetFx provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as source, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing ApplicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
hashtable
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when getting the .NET Framework version for a remote IIS application pool. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
Debug
SwitchParameter
SwitchParameter
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy AppPoolNetFx provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253199 to learn about custom provider settings for AppPoolNetFx provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as source, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing ApplicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
hashtable
hashtable
WarningVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
OutBuffer
int
int
Site
Specifies an IIS web site; the .NET framework version for this web site will be returned by the cmdlet. For a remote site, this may be specified instead in the SourcePublishSettings Web Deploy publish settings file.
string
string
OutVariable
string
string
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
Get-WDAppPoolFx "default web site"
managedRuntimeVersion
---------------------
v2.0
Description
-----------
Gets runtime version for "default web site"
Get-WDParameters
Gets Web Deploy parameters from a Web Deploy parameters value file
Get
WDParameters
The Get-WDParameters cmdlet retrieves web deploy parameter values from an existing Web Deploy parameter values file
Get-WDParameters
FilePath
Specifies path of either Web Deploy parameters values file or Web Deploy package where Web Deploy parameter values are stored
string
Debug
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
Verbose
SwitchParameter
SwitchParameter
FilePath
Specifies path of either Web Deploy parameters values file or Web Deploy package where Web Deploy parameter values are stored
string
string
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
OutVariable
string
string
OutBuffer
int
int
Get-WDPublishSettings
Gets publish settings from a Web Deploy publish settings file
Get
WDPublishSettings
The Get-WDPublishSettings cmdlet retrieves web deploy publish settings from an existing Web Deploy publish settings file
Get-WDPublishSettings
FileName
Specifies path of publish settings file where publish settings are stored
string
Debug
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
OutBuffer
int
int
FileName
Specifies path of publish settings file where publish settings are stored
string
string
OutVariable
string
string
Invoke-WDCommand
Executes a given command on the destination computer.
Invoke
WDCommand
The Invoke-WDCommand cmdlet executes a given command on the destination computer. This cmdlet can also run a command file or batch file on the destination computer.
Invoke-WDCommand
Command
Specifies the command to run.
string
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when running a command on a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy RunCommand provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253208 to learn about custom provider settings for RunCommand provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
WarningVariable
string
string
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
Command
Specifies the command to run.
string
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy RunCommand provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253208 to learn about custom provider settings for RunCommand provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
hashtable
WhatIf
SwitchParameter
SwitchParameter
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
OutBuffer
int
int
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when running a command on a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
OutVariable
string
string
Debug
SwitchParameter
SwitchParameter
Confirm
SwitchParameter
SwitchParameter
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
$settings = @ { waitInterval = 3000; waitAttempts = 5;}
Invoke-WDCommand "dir c:\mydirectory /s/b" -DestinationSettings $settings
Description
-----------
This will execute "dir c:\mydirectory /s/b" command. In case of failure it will retry for 5 times, each time waiting for 3 sec.
Invoke-WDScript
Executes a given script on the destination computer.
Invoke
WDScript
The Invoke-WDScript cmdlet executes a given script on the destination computer.
Invoke-WDScript
Script
Specifies a path to a script to run, such as a batch (.bat) or command (.cmd) file.
string
ScriptLocation
Indicates that specified script is present on the local machine or the destination machine, if different.
Valid values are:
-- Local: Use if the script exists locally. The local script will be streamed to the remote computer and run
-- Remote: Use if the script exists on the remote computer. The remote script will be run
ScriptFileLocation
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when running a script on a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy RunCommand provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253208 to learn about custom provider settings for RunCommand provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
WarningVariable
string
string
Debug
SwitchParameter
SwitchParameter
ScriptLocation
Indicates that specified script is present on the local machine or the destination machine, if different.
Valid values are:
-- Local: Use if the script exists locally. The local script will be streamed to the remote computer and run
-- Remote: Use if the script exists on the remote computer. The remote script will be run
ScriptFileLocation
ScriptFileLocation
Confirm
SwitchParameter
SwitchParameter
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when running a script on a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WhatIf
SwitchParameter
SwitchParameter
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy RunCommand provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253208 to learn about custom provider settings for RunCommand provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
hashtable
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
OutBuffer
int
int
Script
Specifies a path to a script to run, such as a batch (.bat) or command (.cmd) file.
string
string
OutVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
New-WDPublishSettings
Creates a Web Deploy publish settings file containing remote connection information.
New
WDPublishSettings
The New-WDPublishSettings cmdlet creates a Web Deploy publish settings file containing remote connection information for how to connect to a given destination. This information includes the computer name, user credentials, and other Web Deploy specific settings. This publish settings file can be provided as an input to other Web Deploy cmdlets such as Backup-WDSite.
New-WDPublishSettings
AgentType
Indicates a specific service should be used to connect to the remote computer. This is an optional parameter.
Valid values include:
-- WMSvc: The Web Management Service (WMSvc) is available on server SKUs with IIS7 or higher, and may be delegated for non-administrator use. Server-side configuration may be required.
-- MSDepSvc: The Web Deploy Agent Service (MSDepSvc) may only be used by administrators on the remote computer.
RemoteAgent
AllowUntrusted
If set, ignores certificate validation errors encountered while connecting to the specified remote computer.
ComputerName
specifies name of the computer for publishing
string
Confirm
Credentials
Specifies credentials to be used for publishing
PSCredential
Debug
EncryptPassword
Password stored in publish settings file will get encrypted if this parameter is specified
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
FileName
File name for output WDPublish settings file
string
MSSqlConnectionString
Specifies the connection string for an MSSQL database which is accessible from the remote machine.
string
MySqlConnectionString
Specifies the connection string for a MySQL database which is accessible from the remote machine.
string
OutBuffer
int
OutVariable
string
Password
Specifies the password for the user account to be used to connect to the remote computer. This password will not be encrypted in the resulting .publishSettings file unless the -EncryptPassword flag is specified.
string
Site
Specifies the site that should be used for site-specific operations.
string
SiteUrl
Specifies the URL for the remote IIS site. This value may be used during a sync by client programs that consume .publishSetting files, such as WebMatrix, to replace references in an application to the local URL.
string
UserId
Specifies the user name for the account that should be used to connect to the remote computer. If specifying a domain account, the domain should be included in the following format: domain\user.
string
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
ErrorVariable
string
string
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
Password
Specifies the password for the user account to be used to connect to the remote computer. This password will not be encrypted in the resulting .publishSettings file unless the -EncryptPassword flag is specified.
string
string
Confirm
SwitchParameter
SwitchParameter
AgentType
Indicates a specific service should be used to connect to the remote computer. This is an optional parameter.
Valid values include:
-- WMSvc: The Web Management Service (WMSvc) is available on server SKUs with IIS7 or higher, and may be delegated for non-administrator use. Server-side configuration may be required.
-- MSDepSvc: The Web Deploy Agent Service (MSDepSvc) may only be used by administrators on the remote computer.
RemoteAgent
RemoteAgent
WhatIf
SwitchParameter
SwitchParameter
MySqlConnectionString
Specifies the connection string for a MySQL database which is accessible from the remote machine.
string
string
AllowUntrusted
If set, ignores certificate validation errors encountered while connecting to the specified remote computer.
SwitchParameter
SwitchParameter
Site
Specifies the site that should be used for site-specific operations.
string
string
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
OutVariable
string
string
OutBuffer
int
int
MSSqlConnectionString
Specifies the connection string for an MSSQL database which is accessible from the remote machine.
string
string
UserId
Specifies the user name for the account that should be used to connect to the remote computer. If specifying a domain account, the domain should be included in the following format: domain\user.
string
string
FileName
File name for output WDPublish settings file
string
string
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
Verbose
SwitchParameter
SwitchParameter
SiteUrl
Specifies the URL for the remote IIS site. This value may be used during a sync by client programs that consume .publishSetting files, such as WebMatrix, to replace references in an application to the local URL.
string
string
EncryptPassword
Password stored in publish settings file will get encrypted if this parameter is specified
SwitchParameter
SwitchParameter
ComputerName
specifies name of the computer for publishing
string
string
Credentials
Specifies credentials to be used for publishing
PSCredential
PSCredential
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
$cred = Get-Credential
New-WDPublishSettings -ComputerName Computer-1 -Site Site1 -Credentials $cred -AllowUntrusted -SiteUrl "https://www.mywebsite.com" -FileName C:\pprofiles\mywebsite.publishsettings -AgentType wmsvc
Description
-----------
This example gets a credential object and then passes it to the new publish settings file cmdlet along with other parameters
Remove-WDSite
Removes the specified IIS web site's configuration and content.
Remove
WDSite
The Remove-WDSite cmdlet deletes the specified IIS web site. This will delete any configuration and content associated with the specified site.
Remove-WDSite
Site
Specifies the IIS web site to remove.
string
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when deleting a remote IIS web site. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet. When removing a remote site, you should connect to the remote computer as an administrator at the server level.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy AppHostConfig provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253198 to learn about custom provider settings for AppHostConfig provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as destination, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing the applicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when deleting a remote IIS web site. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet. When removing a remote site, you should connect to the remote computer as an administrator at the server level.
string
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy AppHostConfig provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253198 to learn about custom provider settings for AppHostConfig provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as destination, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing the applicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
hashtable
hashtable
WarningVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
OutBuffer
int
int
WhatIf
SwitchParameter
SwitchParameter
Site
Specifies the IIS web site to remove.
string
string
Debug
SwitchParameter
SwitchParameter
Confirm
SwitchParameter
SwitchParameter
OutVariable
string
string
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
Remove-WDSite -Site NonWorkingSite
Description
-----------
This will delete NonWorkingSite
Restore-WDApp
Restores an IIS web application from a Web Deploy application backup.
Restore
WDApp
The Restore-WDApp cmdlet restores an IIS web application from a Web Deploy application backup, such as those created using the Backup-WDApp cmdlet.
Restore-WDApp
Package
Specifies the Web Deploy backup .zip file to restore.
string
Parameters
Specifies Web Deploy parameter values to use when restoring a Web Deploy backup. These settings can be read from a parameters value file to a hash table using the Get-WDParameters cmdlet.
hashtable
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when restoring a Web Deploy backup to a remote IIS web application. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy IISApp provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253205 to learn about custom provider settings for IISApp provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as destination, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing the applicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SkipFileList
Specifies list of files to be skipped while restoring from backup.
String]
SkipFolderList
Specifies list of files to be skipped while restoring from backup.
String]
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
Confirm
SwitchParameter
SwitchParameter
SkipFileList
Specifies list of files to be skipped while restoring from backup.
String]
String]
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when restoring a Web Deploy backup to a remote IIS web application. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WhatIf
SwitchParameter
SwitchParameter
Package
Specifies the Web Deploy backup .zip file to restore.
string
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy IISApp provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253205 to learn about custom provider settings for IISApp provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as destination, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing the applicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
hashtable
hashtable
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
SkipFolderList
Specifies list of files to be skipped while restoring from backup.
String]
String]
OutBuffer
int
int
OutVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
Parameters
Specifies Web Deploy parameter values to use when restoring a Web Deploy backup. These settings can be read from a parameters value file to a hash table using the Get-WDParameters cmdlet.
hashtable
hashtable
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
Restore-WDApp C:\myappbackup.zip
Description
-----------
This will restore C:\myappbackup.zip
Restore-WDDatabase
Restores an MSSQL or MySQL database from a Web Deploy database backup.
Restore
WDDatabase
The Restore-WDDatabase cmdlet restores an MSSQL or MySQL database from a Web Deploy database backup, such as those created using the Backup-WDSQLDatabase cmdlet.
Restore-WDDatabase
Package
Specifies the Web Deploy backup .zip file to restore.
string
Parameters
Specifies Web Deploy parameter values to use when restoring a Web Deploy backup. These settings can be read from a parameters value file to a hash table using the Get-WDParameters cmdlet.
hashtable
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when restoring a Web Deploy database backup to a database that must be accessed from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy DBFullSQL or DBMySQL provider as a destination provider depending upon type of the database being restored. Please visit http://go.microsoft.com/fwlink/?LinkId=253201 to learn about custom provider settings for DBFullSQL provider, or http://go.microsoft.com/fwlink/?LinkId=253202 for DBMySQL provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
ErrorVariable
string
string
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when restoring a Web Deploy database backup to a database that must be accessed from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy DBFullSQL or DBMySQL provider as a destination provider depending upon type of the database being restored. Please visit http://go.microsoft.com/fwlink/?LinkId=253201 to learn about custom provider settings for DBFullSQL provider, or http://go.microsoft.com/fwlink/?LinkId=253202 for DBMySQL provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
hashtable
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
OutBuffer
int
int
WhatIf
SwitchParameter
SwitchParameter
Package
Specifies the Web Deploy backup .zip file to restore.
string
string
Debug
SwitchParameter
SwitchParameter
Confirm
SwitchParameter
SwitchParameter
OutVariable
string
string
Parameters
Specifies Web Deploy parameter values to use when restoring a Web Deploy backup. These settings can be read from a parameters value file to a hash table using the Get-WDParameters cmdlet.
hashtable
hashtable
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
Backup-WDSqlDatabase "server=.\sqlexpress;integrated security=SSPI;database=customers" "C:\dbbackup.zip"
Restore-WDDatabase c:\dbbackup.zip
Description
-----------
First cmdlet will take a backup of customers SQL database from local sqlexpress instance to "C:\dbbackup.zip"
Second will restore this backup.
-------------------------- EXAMPLE 2 --------------------------
C:\PS>
Backup-WDMySqlDatabase "server=localhost;uid=someuser;pwd=somepwd;database=coolDb" "C:\dbbackup.zip"
Restore-WDDatabase c:\dbbackup.zip
Description
-----------
First cmdlet will take a backup of MySQL coolDb database from local sqlexpress instance to "C:\dbbackup.zip"
Second will restore this backup.
Restore-WDPackage
Restores a Web Deploy package to a specified destination.
Restore
WDPackage
The Restore-WDPackage cmdlet restores a Web Deploy package to a specified destination. If you need to change settings while restoring the package you can provide a ParameterValuesFile containing details about replacement settings.
Restore-WDPackage
Package
Specifies the Web Deploy .zip file to restore.
string
Parameters
Specifies Web Deploy parameter values to use when restoring a Web Deploy package. These settings can be read from a parameters value file to a hash table using the Get-WDParameters cmdlet.
hashtable
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when restoring a Web Deploy .zip package to a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy Package provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253207 to learn about custom provider settings for Package provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as destination, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing the applicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SkipFileList
Specifies list of files to be skipped while restoring the package.
String]
SkipFolderList
Specifies list of files to be skipped while restoring the package.
String]
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
Confirm
Prompts you for confirmation before executing the command.
WhatIf
Describes what would happen if you executed the command without actually executing the command.
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
Confirm
SwitchParameter
SwitchParameter
SkipFileList
Specifies list of files to be skipped while restoring the package.
String]
String]
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when restoring a Web Deploy .zip package to a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WhatIf
SwitchParameter
SwitchParameter
Package
Specifies the Web Deploy .zip file to restore.
string
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy Package provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253207 to learn about custom provider settings for Package provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as destination, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing the applicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
hashtable
hashtable
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
SkipFolderList
Specifies list of files to be skipped while restoring the package.
String]
String]
OutBuffer
int
int
OutVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
Parameters
Specifies Web Deploy parameter values to use when restoring a Web Deploy package. These settings can be read from a parameters value file to a hash table using the Get-WDParameters cmdlet.
hashtable
hashtable
Confirm
Prompts you for confirmation before executing the command.
SwitchParameter
SwitchParameter
WhatIf
Describes what would happen if you executed the command without actually executing the command.
SwitchParameter
SwitchParameter
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
Restore-WDPackage c:\Packages\wordpress.zip
Description
-----------
This will restore c:\Packages\wordpress.zip package
-------------------------- EXAMPLE 2 --------------------------
C:\PS>
$package ='D:\packages\appWithDatabase.zip'
$packageParams = Get-WDParameters $package
write-host "old values:" $packageParams
$packageParams.AppPath = "Default Web Site/MyApp"
$packageParams.DbPassword = "MyPassword"
$packageParams.DbName = "MyAppDb"
$packageParams.DbUserName = "MyAppDbUser"
$packageParams.DbAdminPassword = "MyAdminPassword"
write-host "new values:" $packageParams
Restore-WDPackage -Package $package -Parameters $packageParams
Old values:
Name Value
---- -----
AppPath Default Web Site/MyApp
DbPasswordMyPassword
DbServer localhost
DbAdminUsername sa
DbName someApp
DbUsername someAppUser
DbAdminPassword
New values:
Name Value
---- -----
AppPath Default Web Site/someApp
DbPassword MyPassword
DbServer localhost
DbAdminUsername sa
DbName MyAppDb
DbUsername MyAppDbUser
DbAdminPassword MyAdminPassword
Description
-----------
This example will change the parameter before restoring the package
Restore-WDServer
Restores an IIS web server from a Web Deploy server backup.
Restore
WDServer
The Restore-WDServer cmdlet restores an IIS web server from a Web Deploy server backup, such as those created using the Backup-WDServer cmdlet.
Restore-WDServer
Package
Specifies the Web Deploy backup .zip file to restore.
string
Parameters
Specifies Web Deploy parameter values to use when restoring a Web Deploy backup. These settings can be read from a parameters value file to a hash table using the Get-WDParameters cmdlet.
hashtable
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when restoring a Web Deploy backup to a remote IIS web server. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy WebServer provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253209 to learn about custom provider settings for WebServer provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Some other important settings are described below:
encryptPassword=<password>
The encryptPassword setting specifies a password to control access to encrypted properties in IIS configuration (for example, an application pool). <password> specifies an alphanumeric password.
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SkipFileList
Specifies list of files to be skipped while restoring from backup.
String]
SkipFolderList
Specifies list of files to be skipped while restoring from backup.
String]
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
Confirm
Prompts you for confirmation before executing the command.
WhatIf
Describes what would happen if you executed the command without actually executing the command.
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
Confirm
SwitchParameter
SwitchParameter
SkipFileList
Specifies list of files to be skipped while restoring from backup.
String]
String]
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when restoring a Web Deploy backup to a remote IIS web server. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WhatIf
SwitchParameter
SwitchParameter
Package
Specifies the Web Deploy backup .zip file to restore.
string
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy WebServer provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253209 to learn about custom provider settings for WebServer provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Some other important settings are described below:
encryptPassword=<password>
The encryptPassword setting specifies a password to control access to encrypted properties in IIS configuration (for example, an application pool). <password> specifies an alphanumeric password.
hashtable
hashtable
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
SkipFolderList
Specifies list of files to be skipped while restoring from backup.
String]
String]
OutBuffer
int
int
OutVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
Parameters
Specifies Web Deploy parameter values to use when restoring a Web Deploy backup. These settings can be read from a parameters value file to a hash table using the Get-WDParameters cmdlet.
hashtable
hashtable
Confirm
Prompts you for confirmation before executing the command.
SwitchParameter
SwitchParameter
WhatIf
Describes what would happen if you executed the command without actually executing the command.
SwitchParameter
SwitchParameter
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
$folderList = @('\\app_data')
Restore-WDServer D:\Machine-1_WebServer_20120419121214.zip -DestinationPublishSettings c:\destinationServer.publishSettings -SkipFolderList $folderList
Description
-----------
This will restore WebServer using given backup file. While restoring, it will not overwrite app_data folder for any website.
Restore-WDSite
Restores an IIS web site from a Web Deploy site backup.
Restore
WDSite
The Restore-WDApp cmdlet restores an IIS web site from a Web Deploy site backup, such as those created using the Backup-WDSite cmdlet.
Restore-WDSite
Package
Specifies the Web Deploy backup .zip file to restore.
string
Parameters
Specifies Web Deploy parameter values to use when restoring a Web Deploy backup. These settings can be read from a parameters value file to a hash table using the Get-WDParameters cmdlet.
hashtable
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when restoring a Web Deploy backup to a remote IIS web site. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy AppHostConfig provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253198 to learn about custom provider settings for AppHostConfig provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
encryptPassword=<password>
The encryptPassword setting specifies a password to control access to encrypted properties in IIS configuration (for example, an application pool). <password> specifies an alphanumeric password.
Additionally, for using IIS Express as destination, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing the applicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
Some other important settings are described below:
encryptPassword=<password>
The encryptPassword setting specifies a password to control access to encrypted properties in IIS configuration (for example, an application pool). <password> specifies an alphanumeric password.
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SkipFileList
Specifies list of files to be skipped while restoring from backup.
String]
SkipFolderList
Specifies list of files to be skipped while restoring from backup.
String]
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
Confirm
SwitchParameter
SwitchParameter
SkipFileList
Specifies list of files to be skipped while restoring from backup.
String]
String]
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when restoring a Web Deploy backup to a remote IIS web site. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WhatIf
SwitchParameter
SwitchParameter
Package
Specifies the Web Deploy backup .zip file to restore.
string
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy AppHostConfig provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253198 to learn about custom provider settings for AppHostConfig provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
encryptPassword=<password>
The encryptPassword setting specifies a password to control access to encrypted properties in IIS configuration (for example, an application pool). <password> specifies an alphanumeric password.
Additionally, for using IIS Express as destination, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing the applicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
Some other important settings are described below:
encryptPassword=<password>
The encryptPassword setting specifies a password to control access to encrypted properties in IIS configuration (for example, an application pool). <password> specifies an alphanumeric password.
hashtable
hashtable
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
SkipFolderList
Specifies list of files to be skipped while restoring from backup.
String]
String]
OutBuffer
int
int
OutVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
Parameters
Specifies Web Deploy parameter values to use when restoring a Web Deploy backup. These settings can be read from a parameters value file to a hash table using the Get-WDParameters cmdlet.
hashtable
hashtable
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
Restore-WDSite C:\defaultsite.zip
Description
-----------
This will restore site1 from C:\defaultsite.zip package.
-------------------------- EXAMPLE 2 --------------------------
C:\PS>
$BackupPackage = 'C:\Users\Administrator\Documents\Web Deploy Backups\MyServer_AppHostConfig_Default Web Site_20120524111540.zip'
$packageParams = Get-WDParameters -FilePath $BackupPackage
write-host $packageParams
$packageParams["Site Name Parameter1"] = "NewSite"
$packageParams["Site Binding Parameter2"] = "*:81:"
$packageParams["Web Application Physical Path Parameter"] = "%SystemDrive%\inetpub\NewSiteRoot"
Restore-WDSite -Package $BackupPackage -Parameters $packageParams
Name Value
---- -----
Site Name Parameter1 Default Web Site
Site Binding Parameter2 *:80:
Web Application Physical Path Parameter %SystemDrive%\inetpub\wwwroot
Description
-----------
This example will restore website to the destination with new site name, port & path, without modifying the backup package.
Set-WDAcl
Sets file system permissions on a specified file or folder.
Set
WDAcl
The Set-WDAcl cmdlet sets file system permissions on a specified file or folder. This may be specified using either a physical file path or relative IIS path.
Set-WDAcl
Destination
Specifies a destination file or folder where file system permissions should be set. This value may be either a physical file path or a relative IIS path, such as "Default Web Site/App_Data".
string
SetAclUser
Specifies the name of the user account which will be granted the file system permissions on the Destination. If using a relative IIS path, the default user is ApplicationPoolIdentity.
string
SetAclAccess
Specifies the file system permission(s) to be granted to the setAclUser. The permissions must be one of the following: AppendData, ChangePermissions, CreateDirectories, CreateFiles, Delete, DeleteSubdirectoriesAndFiles, ExecuteFile, FullControl, ListDirectory, Modify, Read, ReadAndExecute, ReadAttributes, ReadData, ReadExtendedAttributes, ReadPermissions, Synchronize, TakeOwnership, Traverse, Write, WriteAttributes, WriteData, WriteExtendedAttributes.
The default is Read.
System.Nullable1[System.Security.AccessControl.FileSystemRights]
SetAclResourceType
Indicates that permissions should be set on a file or folder. Folder permissions are the default.
Valid values are:
-- Folder: Use to set permissions on a directory
-- File: Use to set permissions on a file
ResourceType
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when setting file system permissions on a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SkipFileList
Specifies list of files to be skipped while setting the ACLs.
String]
SkipFolderList
Specifies list of folders to be skipped while setting the ACLs.
String]
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
Confirm
SwitchParameter
SwitchParameter
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
SetAclResourceType
Indicates that permissions should be set on a file or folder. Folder permissions are the default.
Valid values are:
-- Folder: Use to set permissions on a directory
-- File: Use to set permissions on a file
ResourceType
ResourceType
SkipFileList
Specifies list of files to be skipped while setting the ACLs.
String]
String]
Destination
Specifies a destination file or folder where file system permissions should be set. This value may be either a physical file path or a relative IIS path, such as "Default Web Site/App_Data".
string
string
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when setting file system permissions on a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WhatIf
SwitchParameter
SwitchParameter
SetAclAccess
Specifies the file system permission(s) to be granted to the setAclUser. The permissions must be one of the following: AppendData, ChangePermissions, CreateDirectories, CreateFiles, Delete, DeleteSubdirectoriesAndFiles, ExecuteFile, FullControl, ListDirectory, Modify, Read, ReadAndExecute, ReadAttributes, ReadData, ReadExtendedAttributes, ReadPermissions, Synchronize, TakeOwnership, Traverse, Write, WriteAttributes, WriteData, WriteExtendedAttributes.
The default is Read.
System.Nullable1[System.Security.AccessControl.FileSystemRights]
System.Nullable1[System.Security.AccessControl.FileSystemRights]
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
SkipFolderList
Specifies list of folders to be skipped while setting the ACLs.
String]
String]
OutBuffer
int
int
OutVariable
string
string
Verbose
SwitchParameter
SwitchParameter
SetAclUser
Specifies the name of the user account which will be granted the file system permissions on the Destination. If using a relative IIS path, the default user is ApplicationPoolIdentity.
string
string
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
#Get the current ACLS for the app_data folder
$dirAcl = Get-Acl C:\inetpub\wwwroot\app1\app_data
$dirAcl.Access | ForEach-Object {Write-Host $_.IdentityReference}
$accessType = [System.Security.AccessControl.FileSystemRights]::Write
Set-WDAcl "Default web site/app1/app_data" -SetAclAccess $accessType -SetAclUser user1
$dirAcl = Get-Acl C:\inetpub\wwwroot\app1\app_data
$dirAcl.Access | ForEach-Object {Write-Host $_.IdentityReference}
Before Set-WDAcl
NT AUTHORITY\NETWORK SERVICE
BUILTIN\IIS_IUSRS
NT SERVICE\TrustedInstaller
NT AUTHORITY\SYSTEM
BUILTIN\Administrators
BUILTIN\Users
After Set-WDAcl
machine-1\user1
BUILTIN\IIS_IUSRS
NT SERVICE\TrustedInstaller
NT AUTHORITY\SYSTEM
BUILTIN\Administrators
BUILTIN\Users
Description
-----------
This example gives write access to machine-1\user1 for app_data folder.
Set-WDAppPoolFx
Sets the .NET framework version of the application pool associated with an IIS web application.
Set
WDAppPoolFx
The Set-WDAppPoolFx cmdlet sets the .NET framework version of the application pool associated with an IIS web application.
Set-WDAppPoolFx
Site
Specifies an IIS web site; the .NET framework version will be set for this web site's application pool. For a remote site, this may be specified instead in the SourcePublishSettings Web Deploy publish settings file.
string
AppPoolFrameworkVersion
Specifies a .NET Framework version to set for the specified IIS web site's application pool. For example: "v2.0" or "v4.0" would be valid values.
string
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when setting the .NET framework version for a remote application pool. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
Confirm
Prompts you for confirmation before executing the command.
WhatIf
Describes what would happen if you executed the command without actually executing the command.
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when setting the .NET framework version for a remote application pool. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
Confirm
SwitchParameter
SwitchParameter
OutBuffer
int
int
WhatIf
SwitchParameter
SwitchParameter
Site
Specifies an IIS web site; the .NET framework version will be set for this web site's application pool. For a remote site, this may be specified instead in the SourcePublishSettings Web Deploy publish settings file.
string
string
AppPoolFrameworkVersion
Specifies a .NET Framework version to set for the specified IIS web site's application pool. For example: "v2.0" or "v4.0" would be valid values.
string
string
OutVariable
string
string
Confirm
Prompts you for confirmation before executing the command.
SwitchParameter
SwitchParameter
WhatIf
Describes what would happen if you executed the command without actually executing the command.
SwitchParameter
SwitchParameter
Sync-WDApp
Synchronizes one IIS web application to another.
Sync
WDApp
The Sync-WDApp cmdlet synchronizes the specified source IIS web application to an alternate application.
Sync-WDApp
SourceApp
Specifies the IIS web application to use as the source of the synchronization.
string
DestinationApp
Specifies the IIS web application to use as the destination of the synchronization.
string
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing to a remote IIS web application. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy IISApp provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253205 to learn about custom provider settings for IISApp provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SkipFileList
Specifies list of files to be skipped during sync.
String]
SkipFolderList
Specifies list of folders to be skipped during sync.
String]
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing from a remote IIS web application. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy IISApp provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253205 to learn about custom provider settings for IISApp provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
Confirm
Prompts you for confirmation before executing the command.
WhatIf
Describes what would happen if you executed the command without actually executing the command.
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
Confirm
SwitchParameter
SwitchParameter
SkipFileList
Specifies list of files to be skipped during sync.
String]
String]
SourceApp
Specifies the IIS web application to use as the source of the synchronization.
string
string
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing to a remote IIS web application. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WhatIf
SwitchParameter
SwitchParameter
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy IISApp provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253205 to learn about custom provider settings for IISApp provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
hashtable
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy IISApp provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253205 to learn about custom provider settings for IISApp provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
hashtable
SkipFolderList
Specifies list of folders to be skipped during sync.
String]
String]
OutBuffer
int
int
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing from a remote IIS web application. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
DestinationApp
Specifies the IIS web application to use as the destination of the synchronization.
string
string
OutVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
Confirm
Prompts you for confirmation before executing the command.
SwitchParameter
SwitchParameter
WhatIf
Describes what would happen if you executed the command without actually executing the command.
SwitchParameter
SwitchParameter
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
Sync-WDApp "Default Web Site/drupal" "site1/drupal"
Description
-----------
This example will copy an application from default web site to Site1.
Sync-WDManifest
Synchronizes multiple Web Deploy providers in a single command.
Sync
WDManifest
The Sync-WDManifest cmdlet can be used to synchronize multiple Web Deploy providers in a single command. This cmdlet takes a Web Deploy manifest file containing a list of providers to sync, such as those related to IIS web sites, IIS web applications, and databases.
Sync-WDManifest
SourceManifest
Specifies a Web Deploy manifest file while contains a list of one or more Web Deploy providers to use as the basis for the sync. More information, including example manifest content, shown here: http://go.microsoft.com/fwlink/?LinkId=245685
For information on different Web Deploy providers here: http://go.microsoft.com/fwlink/?LinkId=245686
string
DestinationManifest
Specifies a Web Deploy manifest file while contains a list of one or more Web Deploy providers to use as the destination for the sync. More information, including example manifest content, shown here: http://go.microsoft.com/fwlink/?LinkId=245685
For information on different Web Deploy providers here: http://go.microsoft.com/fwlink/?LinkId=245686
string
ParameterValuesFile
Specifies a Web Deploy parameters file that may be used to change settings during the sync operation. More information on Web Deploy parameters may be found here: http://go.microsoft.com/fwlink/?LinkId=245683
string
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing to a destination on a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy Manifest provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253206 to learn about custom provider settings for Manifest provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as destination, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing the applicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SkipFileList
Specifies list of files to be skipped during sync.
String]
SkipFolderList
Specifies list of folders to be skipped during sync.
String]
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing from a source on a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy Manifest provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253206 to learn about custom provider settings for Manifest provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as source, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing ApplicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
hashtable
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
Confirm
SwitchParameter
SwitchParameter
SkipFileList
Specifies list of files to be skipped during sync.
String]
String]
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing to a destination on a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WhatIf
SwitchParameter
SwitchParameter
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy Manifest provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253206 to learn about custom provider settings for Manifest provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as source, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing ApplicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
hashtable
hashtable
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy Manifest provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253206 to learn about custom provider settings for Manifest provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
Additionally, for using IIS Express as destination, please specify following settings
AppHostConfigDir=<path> - Absolute path of directory containing the applicationHost.config file for IIS Express
WebServerDir=<path>- Absolute path of directory containing application binaries for IIS Express
hashtable
hashtable
SourceManifest
Specifies a Web Deploy manifest file while contains a list of one or more Web Deploy providers to use as the basis for the sync. More information, including example manifest content, shown here: http://go.microsoft.com/fwlink/?LinkId=245685
For information on different Web Deploy providers here: http://go.microsoft.com/fwlink/?LinkId=245686
string
string
SkipFolderList
Specifies list of folders to be skipped during sync.
String]
String]
OutBuffer
int
int
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ParameterValuesFile
Specifies a Web Deploy parameters file that may be used to change settings during the sync operation. More information on Web Deploy parameters may be found here: http://go.microsoft.com/fwlink/?LinkId=245683
string
string
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing from a source on a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
OutVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
DestinationManifest
Specifies a Web Deploy manifest file while contains a list of one or more Web Deploy providers to use as the destination for the sync. More information, including example manifest content, shown here: http://go.microsoft.com/fwlink/?LinkId=245685
For information on different Web Deploy providers here: http://go.microsoft.com/fwlink/?LinkId=245686
string
string
Sync-WDMySQLDatabase
Synchronizes one MySQL database to another.
Sync
WDMySQLDatabase
The Sync-WDMySQLDatabase cmdlet synchronizes a source MySQL database to a destination MySQL database.
Sync-WDMySQLDatabase
SourceDatabase
Specifies the connection string for the source database. This may also be a path to a .sql script file to run the script on the destination database.
string
DestinationDatabase
Specifies the connection string for the destination database. This may also be a path to a .sql file to create a database script.
string
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing to a database that must be accessed from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy DBMySQL provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253202 to learn about custom provider settings for DBFullSQL provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing from a database which must be accessed from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy DBMySQL provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253202 to learn about custom provider settings for DBFullSQL provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing to a database that must be accessed from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy DBMySQL provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253202 to learn about custom provider settings for DBFullSQL provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
hashtable
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy DBMySQL provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253202 to learn about custom provider settings for DBFullSQL provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
hashtable
DestinationDatabase
Specifies the connection string for the destination database. This may also be a path to a .sql file to create a database script.
string
string
OutBuffer
int
int
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
SourceDatabase
Specifies the connection string for the source database. This may also be a path to a .sql script file to run the script on the destination database.
string
string
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing from a database which must be accessed from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
OutVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
WhatIf
SwitchParameter
SwitchParameter
Confirm
SwitchParameter
SwitchParameter
Sync-WDServer
Synchronizes an IIS web server to a destination IIS web server.
Sync
WDServer
The Sync-WDServer cmdlet synchronizes the IIS web server content and configuration of the source server to the destination server. This cmdlet will delete any web sites and applications on the destination server that do not exist on the source server.
Sync-WDServer
ConfigOnly
If set, omits virtual directory content and backs up only configuration.
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing to a remote IIS web server. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy WebServer provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253209 to learn about custom provider settings for WebServer provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SkipFileList
Specifies list of files to be skipped during sync.
String]
SkipFolderList
Specifies list of folders to be skipped during sync.
String]
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing from a remote IIS web server. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy WebServer provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253209 to learn about custom provider settings for WebServer provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
Confirm
SwitchParameter
SwitchParameter
SkipFileList
Specifies list of files to be skipped during sync.
String]
String]
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing to a remote IIS web server. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WhatIf
SwitchParameter
SwitchParameter
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy WebServer provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253209 to learn about custom provider settings for WebServer provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
hashtable
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy WebServer provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253209 to learn about custom provider settings for WebServer provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
hashtable
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ConfigOnly
If set, omits virtual directory content and backs up only configuration.
SwitchParameter
SwitchParameter
SkipFolderList
Specifies list of folders to be skipped during sync.
String]
String]
OutBuffer
int
int
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing from a remote IIS web server. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
OutVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
New-WDPublishSettings -ComputerName comp1 -AgentType MSDepSvc -FileName c:\example1.publishsettings
New-WDPublishSettings -ComputerName comp2 -AgentType MSDepSvc -FileName c:\example2.publishsettings
Sync-WDServer -SourcePublishSettings c:\example1.publishSettings -DestinationPublishSettings c:\example2.publishSettings
Description
-----------
This example will sync IIS web server on comp2 with IIS web server on comp1.
Sync-WDSite
Synchronizes an IIS web site from one site to another.
Sync
WDSite
The Sync-WDSite cmdlet synchronizes the specified source IIS web site to either a new or pre-existing site. By default, the cmdlet will synchronize both content and configuration of the given web site and any web applications present within that web site. The web site will be created on the destination IIS server if it does not exist. The application pool is not included by default.
Sync-WDSite
SourceSite
Specifies the IIS web site to use as the source of the synchronization.
string
DestinationSite
Specifies the IIS web site to use as the destination of the synchronization. If the site does not already exist it will be created.
string
SitePhysicalPath
string
SiteBinding
Specifies a new value for the destination site binding, such as "*:81:". If not specified, the source site binding will be used for the destination site.
string
ConfigOnly
If set, omits virtual directory content and backs up only configuration.
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing to a remote IIS web site. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy AppHostConfig provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253198 to learn about custom provider settings for AppHostConfig provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
IncludeAppPool
If set, includes the IIS web site's application pool in the site sync.
OutBuffer
int
OutVariable
string
SkipFileList
Specifies list of files to be skipped during sync.
String]
SkipFolderList
Specifies list of folders to be skipped during sync.
String]
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing from a remote IIS web site. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy AppHostConfig provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253198 to learn about custom provider settings for AppHostConfig provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
Confirm
Prompts you for confirmation before executing the command.
WhatIf
Describes what would happen if you executed the command without actually executing the command.
Confirm
SwitchParameter
SwitchParameter
Verbose
SwitchParameter
SwitchParameter
WarningVariable
string
string
ErrorVariable
string
string
SkipFileList
Specifies list of files to be skipped during sync.
String]
String]
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing to a remote IIS web site. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
WhatIf
SwitchParameter
SwitchParameter
Debug
SwitchParameter
SwitchParameter
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy AppHostConfig provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253198 to learn about custom provider settings for AppHostConfig provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
hashtable
DestinationSite
Specifies the IIS web site to use as the destination of the synchronization. If the site does not already exist it will be created.
string
string
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ConfigOnly
If set, omits virtual directory content and backs up only configuration.
SwitchParameter
SwitchParameter
SkipFolderList
Specifies list of folders to be skipped during sync.
String]
String]
SourceSite
Specifies the IIS web site to use as the source of the synchronization.
string
string
OutBuffer
int
int
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing from a remote IIS web site. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
OutVariable
string
string
IncludeAppPool
If set, includes the IIS web site's application pool in the site sync.
SwitchParameter
SwitchParameter
SiteBinding
Specifies a new value for the destination site binding, such as "*:81:". If not specified, the source site binding will be used for the destination site.
string
string
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
SitePhysicalPath
string
string
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy AppHostConfig provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253198 to learn about custom provider settings for AppHostConfig provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
hashtable
Confirm
Prompts you for confirmation before executing the command.
SwitchParameter
SwitchParameter
WhatIf
Describes what would happen if you executed the command without actually executing the command.
SwitchParameter
SwitchParameter
-------------------------- EXAMPLE 1 --------------------------
C:\PS>
Sync-WDSite site1 Site2 -SitePhysicalPath c:\site2 -SiteBinding "*:8078:" -IncludeAppPool
Description
-----------
This example will sync site1 to site2 with application pool settings. It will use c:\site2 as physical path for target site and 8078 as http port.
Sync-WDSQLDatabase
Synchronizes one MSSQL database to another.
Sync
WDSQLDatabase
The Sync-WDSQLDatabase cmdlet synchronizes a source MSSQL database to a destination MSSQL database.
Sync-WDSQLDatabase
SourceDatabase
Specifies the connection string for the source database. This may also be a path to a .sql script file to run the script on the destination database.
string
DestinationDatabase
Specifies the connection string for the destination database. This may also be a path to a .sql file to create a database script.
string
Confirm
Debug
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing to a database that must be accessed from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy DBFullSQL provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253201 to learn about custom provider settings for DBFullSQL provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
ErrorAction
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
OutBuffer
int
OutVariable
string
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing from a database which must be accessed from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy DBFullSQL provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253201 to learn about custom provider settings for DBFullSQL provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
Verbose
WarningAction
SilentlyContinue
Stop
Continue
Inquire
WarningVariable
string
WhatIf
Debug
SwitchParameter
SwitchParameter
WarningVariable
string
string
DestinationPublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing to a database that must be accessed from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
DestinationSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy DBFullSQL provider as a destination provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253201 to learn about custom provider settings for DBFullSQL provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
hashtable
SourceSettings
This parameter can be used to configure the Web Deploy provider used by this cmdlet. This cmdlet uses the Web Deploy DBFullSQL provider as a source provider. Please visit http://go.microsoft.com/fwlink/?LinkId=253201 to learn about custom provider settings for DBFullSQL provider. To learn more about Web Deploy providers, visit http://go.microsoft.com/fwlink/?LinkId=253228.
hashtable
hashtable
DestinationDatabase
Specifies the connection string for the destination database. This may also be a path to a .sql file to create a database script.
string
string
OutBuffer
int
int
WarningAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
SourceDatabase
Specifies the connection string for the source database. This may also be a path to a .sql script file to run the script on the destination database.
string
string
SourcePublishSettings
Specifies a Web Deploy publish settings file to use when synchronizing from a database which must be accessed from a remote computer. The publish settings will include connection information for the remote computer and may be created using the New-WDPublishSettings cmdlet.
string
string
OutVariable
string
string
Verbose
SwitchParameter
SwitchParameter
ErrorAction
The following values are permitted for this object type.
ActionPreference
ActionPreference
SilentlyContinue
Stop
Continue
Inquire
ErrorVariable
string
string
WhatIf
SwitchParameter
SwitchParameter
Confirm
SwitchParameter
SwitchParameter