Set-TrustedHosts

Sets the current computer's trusted hosts list.

Syntax

Set-TrustedHosts [[-Entries] <String[]>] [<CommonParameters>]

Description

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

Parameters

Name Type Description Required? Pipeline Input Default Value
Entries String[] An array of trusted host entries. false false

EXAMPLE 1

Set-TrustedHosts 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.