編集

次の方法で共有


Remove-HgsGuardian

Removes a guardian from the guardian store.

Syntax

Remove-HgsGuardian
      [-Name] <String>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-HgsGuardian
      [-InputObject] <CimInstance>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-HgsGuardian cmdlet removes a Host Guardian Service guardian object from the guardian store.

Examples

Example 1: Remove a guardian

PS C:\> Remove-HgsGuardian -Name "Guardian11"

This command removes the guardian named Guardian11 from the local store.

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

-InputObject

The HGS guardian object to remove.

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

-Name

Specifies the name of the guardian to remove.

Type:String
Position:1
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