Set-WssFileHistoryManagementStatus

Set-WssFileHistoryManagementStatus

Changes the File History managed status of a user account.

構文

Parameter Set: Default
Set-WssFileHistoryManagementStatus [-UserName] <String> [-Delete] [-Force] [-UnManage] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Set-WssFileHistoryManagementStatus cmdlet changes the File History managed status of a user account. Specify the UnManage parameter if you do not want the server to manage the user account that you specify in the UserName parameter.

パラメーター

-Delete

Indicates that the cmdlet also deletes the File History Backup folder for the user account when you specify the UnManage parameter.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Force

ユーザーの確認を求めずにコマンドを強制的に実行します。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-UnManage

Indicates that the server no longer manages the File History of the user account.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-UserName<String>

Specifies the user name whose File History you want to manage.

エイリアス

un

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • System.String

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Change the File History managed status of a computer

This command changes the File History managed status of a user named DaveB to unmanaged, and deletes the File History Backup folder for that account.

PS C:\> Set-WssFileHistoryManagementStatus -UserName "DaveB" -UnManage -Delete