Set-WssFileHistoryManagementStatus

Changes the File History managed status of a computer.

Syntax

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

Description

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

Examples

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

PS C:\> Set-WssFileHistoryManagementStatus -ComputerName "Workstation071" -UnManage -Delete

This command changes the File History managed status of a client computer named Workstation071 to unmanaged, and deletes the File History Backup folder for the client computer.

Parameters

-ComputerName

Specifies the name of a computer.

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

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-Delete

Indicates that the cmdlet deletes the File History Backup folder for the client computer 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 does not manage the File History of the client computer.

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

-WhatIf

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

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