Set-TrustedHost

Sets the current computer's trusted hosts list.

Syntax

Set-TrustedHost [-Entry] <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Clears the current trusted hosts list, and sets it to contain only the entries given by the Entries parameter.

To clear the trusted hosts list, use Clear-TrustedHost.

Related Commands

Parameters

Name Type Description Required? Pipeline Input Default Value
Entry String[]

An array of trusted host entries.

true false
WhatIf SwitchParameter false false
Confirm SwitchParameter false false
CommonParameters This cmdlet supports common parameters. For more information type
Get-Help about_CommonParameters.

EXAMPLE 1

Set-TrustedHost -Entry example.com,api.example.com,docs.example.com

Sets the trusted hosts list to contain just the values example.com, api.example.com, and docs.example.com.