Uninstall-DeviceHealthAttestation

Uninstalls the Device Health Attestation service.

Syntax

Uninstall-DeviceHealthAttestation
         [-RemoveSslBinding]
         [-Force]
         [-WhatIf]
         [-Confirm]
         [<CommonParameters>]

Description

The Uninstall-DeviceHealthAttestation cmdlet uninstalls the Device Health Attestation service and its dependencies. The cmdlet also removes the firewall rule for incoming requests, the web application, and the application pool.

You must have administrator rights to run this cmdlet.

Examples

Example 1: Uninstall the Device Health Attestation service

PS C:\> Uninstall-DeviceHealthAttestation

This command uninstalls the Device Health Attestation service.

Example 2: Uninstall the Device Health Attestation service with SSL bindings

PS C:\> Uninstall-DeviceHealthAttestation -RemoveSslBinding

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

-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

-RemoveSslBinding

Removes the SSL binding from the default website.

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
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False