Set-WssFileHistoryManagementStatus

Changes the File History managed status of a user account.

Syntax

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

Description

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.

Examples

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

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

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.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-Delete

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

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

-Force

Forces the command to run without asking for user confirmation.

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

-UnManage

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

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

-UserName

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

Type:String
Aliases:un
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

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

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

Inputs

String