Clear-TrustedHost

Removes all entries from PowerShell trusted hosts list.

Syntax

Clear-TrustedHost [-WhatIf] [-Confirm] [<CommonParameters>]

Description

The Add-TrustedHost function adds new entries to the trusted hosts list. Set-TrustedHost sets it to a new list. This function clears out the trusted hosts list completely. After you run it, you won't be able to connect to any computers until you add them to the trusted hosts list.

Related Commands

Parameters

Name Type Description Required? Pipeline Input Default Value
WhatIf SwitchParameter false false
Confirm SwitchParameter false false
CommonParameters This cmdlet supports common parameters. For more information type
Get-Help about_CommonParameters.

EXAMPLE 1

Clear-TrustedHost

Clears everything from the trusted hosts list.