Reset-WebSitesConnectionString

Resets a database connection string.

Syntax

Reset-WebSitesConnectionString [-Type] <DatabaseType> [-ServerRoles] <ServerRole[]> [-Confirm] [-Force]
 [-RemoteSettings <RemoteSettings>] [-SuppressRequestIdLine] [-WhatIf] [-WorkerNames <String[]>]
 [<CommonParameters>]

Description

The Reset-WebSitesConnectionString cmdlet resets the database connection string for the specified database type.

Examples

Example 1: Reset the connection string for a hosting database

PS C:\> Reset-WebSitesConnectionString -Type "Hosting"
This command resets the connection string for the hosting database.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-RemoteSettings

{{Fill RemoteSettings Description}}

Type:RemoteSettings
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ServerRoles

{{Fill ServerRoles Description}}

Type:ServerRole[]
Parameter Sets:Controller, ManagementServer, FrontEnd, Publisher, Worker
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-SuppressRequestIdLine

{{Fill SuppressRequestIdLine Description}}

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Type

Specifies the database type.
Valid values are:

- Hosting
- Metering

For example:

-Type "Metering"

Type:DatabaseType
Parameter Sets:Hosting, Metering
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs.
The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

-WorkerNames

{{Fill WorkerNames Description}}

Type:String[]
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False