Resets a database connection string.
Syntax
Parameter Set: Default
Reset-WebSitesConnectionString [-Type] {Hosting | Metering}
[-Force] [-PipelineVariable <String> ] [-Confirm] [-WhatIf] [
<CommonParameters>]
The Reset-WebSitesConnectionString cmdlet resets the database connection string for the specified database type. Specify a database type by using the Type parameter.
Forces the command to execute without asking for user confirmation.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
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 |
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 |
Prompts you for confirmation before executing the command.
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
This command resets the connection string for the hosting database.
PS C:\> Reset-WebSitesConnectionString -Type Hosting