Update-WebSitesDatabase

Update-WebSitesDatabase

Updates an existing Web Sites database.

Syntax

Parameter Set: Default
Update-WebSitesDatabase [-Type] {Hosting | Metering} [-PipelineVariable <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]


 

Detailed Description

The Update-WebSitesDatabase cmdlet updates an existing Web Sites database. Updating the database is usually done after updating the controller to synchronize the database with the new binaries.

Parameters

-PipelineVariable<String>

Specifies a variable to be used with the pipeline operator.

 

Aliases

pv

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-Type<DatabaseType>

Specifies the database type. Valid values are:

-- Hosting

-- Metering

The acceptable values for this parameter are:

 

Hosting

 

Metering

 

 

 

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-Confirm

Prompts you for confirmation before executing the command.

 

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-WhatIf

Describes what would happen if you executed the command without actually executing the command.

 

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

Example 1: Update a hosting database

This command updates the hosting database.

PS C:\> Update-WebSitesDatabase -Type Hosting

 

Related topics

Remove-WebSitesDatabase