Add-TrustedHost

Adds an item to the computer's list of trusted hosts.

Syntax

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

Description

Adds an entry to this computer's list of trusted hosts. If the item already exists, nothing happens.

PowerShell Remoting needs to be turned on for this function to work.

Related Commands

Parameters

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

The computer name(s) to add to the trusted hosts

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

Add-TrustedHost -Entry example.com

Adds example.com to the list of this computer's trusted hosts. If example.com is already on the list of trusted hosts, nothing happens.