Set-WssFileHistoryManagementStatus

Set-WssFileHistoryManagementStatus

Changes the File History managed status of a computer.

Syntax

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

Detailed 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.

Parameters

-ComputerName<String>

Specifies the name of a computer.

Aliases

cn

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

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.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Force

Forces the command to run without asking for user confirmation.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-UnManage

Indicates that the server does not manage the File History of the client computer.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

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

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.

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