< Back

Add-CTrustedHost

Sun Jan 12, 2020 8:55 pm

NAME Add-CTrustedHost



SYNOPSIS

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





SYNTAX

Add-CTrustedHost [-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.





PARAMETERS

-Entry <String[]>

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



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:\\>Add-CTrustedHost -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.











RELATED LINKS

Enable-PSRemoting