Edit

Share via


Get-WmsDiskProtection

Gets the current state and configuration of the disk protection feature.

Syntax

Default (Default)

Get-WmsDiskProtection
    [-Server <String>]
    [<CommonParameters>]

Description

The Get-WmsDiskProtection cmdlet gets the current configuration of the disk protection feature. The configuration can be NotInstalled, Discard, or Passive.

Examples

Example 1: Get the disk protection configuration for the local computer

PS C:\> Get-WmsDiskProtection
Discard

This command returns the state of the disk protection feature on the local computer.

Example 2: Get the disk protection configuration for a specified computer

PS C:\> Get-WmsDiskProtection -Server "Sample.microsoft.com"
Passive

This command returns the state of the disk protection feature on the specified computer.

Parameters

-Server

Specifies the fully qualified host name of the MultiPoint Server that is the target of the command. The default is localhost.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:ComputerName

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Outputs

Microsoft.WindowsServerSolutions.MultipointServer.PowerShell.Commands.Library.DiskProtectionMode

The DiskProtectionMode object is an enumeration with one of three values that reflect the current mode of the disk protection feature. The possible values are NotInstalled, Discard, or Passive.