Sets the current computer's trusted hosts list.
Set-TrustedHost [-Entry] <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]
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
.
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 . |
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
.