Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Latest commit

 

History

History
39 lines (26 loc) · 934 Bytes

Add-TrustedHost.README.md

File metadata and controls

39 lines (26 loc) · 934 Bytes

Add-TrustedHost

Add a trusted host (WinRM).

Description

Add one or mulitple trusted host(s) (WinRM).

Screenshot

Administrative rights are required to execute this command!

Syntax

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

Example

PS> Add-TrustedHost -TrustedHost "192.168.178.27", "TEST-DEVICE-02"

Confirm
Are you sure you want to perform this action?
Performing the operation "Add-TrustedHost" on target "WSMan:\localhost\Client\TrustedHosts".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): Y

PS> Get-TrustedHost

TrustedHost
-----------
192.168.178.28
TEST-DEVICE-01
192.168.178.27
TEST-DEVICE-02