< Back

Set-CTrustedHost

Sun Jan 12, 2020 11:16 pm

NAME Set-CTrustedHost



SYNOPSIS

Sets the current computer's trusted hosts list.





SYNTAX

Set-CTrustedHost [-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-CTrustedHost`.





PARAMETERS

-Entry <String[]>

An array of trusted host entries.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-CTrustedHost -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`.











RELATED LINKS

Clear-CTrustedHost