Update-WebSitesDatabase
Web サイト データベースを更新します。
構文
Update-WebSitesDatabase
[[-HostingConnectionString] <String>]
[[-MeteringConnectionString] <String>]
[-Force]
[-PerformPostUpdate]
[-Type] <DatabaseType>
[-RemoteSettings <RemoteSettings>]
[-SuppressRequestIdLine]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
説明
Update-WebSitesDatabase コマンドレットは、Web サイト データベースを更新します。 通常、ホスト データベースまたは使用状況測定データベースの更新は、コントローラーが更新された後に実行されます。 これは、データベースを更新されたコントローラーと同期するのに役立ちます。
例
例 1: ホスティング データベースを更新する
PS C:\> Update-WebSitesDatabase -Type "Hosting"
このコマンドでは、ホスティング データベースを更新します。
パラメーター
-Confirm
コマンドレットの実行前に確認を求めるメッセージが表示されます。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Force
{{強制説明を入力}}
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-HostingConnectionString
{{Fill HostingConnectionString Description}}
Type: | String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-MeteringConnectionString
{{Fill MeteringConnectionString Description}}
Type: | String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PerformPostUpdate
{{Fill PerformPostUpdate Description}}
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RemoteSettings
{{Fill RemoteSettings Description}}
Type: | RemoteSettings |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SuppressRequestIdLine
{{Fill SuppressRequestIdLine Description}}
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Type
更新するデータベースの種類を指定します。 有効な値は次のとおりです。
- Hosting
- 測定
次に例を示します。
-Type "Metering"
Type: | DatabaseType |
Accepted values: | Hosting, Metering |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
コマンドレットの実行時に発生する内容を示します。 このコマンドレットは実行されません。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |