6.1

Table Of Contents
d Use a command to add vRealize Orchestrator hosts as trusted servers.
Option Command
Add all machines as trusted hosts
Set-Item wsman:\localhost\client\trustedhosts * or
set-item wsman:\localhost\Client\TrustedHosts -value *
Add all domain machines as
trusted hosts
set-item wsman:\localhost\Client\TrustedHosts
*.domain.com
Add a single machine (use the
FQDN of the machine)
set-item wsman:\localhost\Client\TrustedHosts -value
hostname.domain.com
Add a single machine using the IP
address
set-item wsman:\localhost\Client\TrustedHosts -value
xxx.xxx.xxx.xxx
Press Y when prompted.
NOTE You can use the following command to see the list of trusted hosts:
Get-item wsman:\localhost\Client\TrustedHosts
e Use the following command to restart WinRM Service:
Restart-Service WinRM
3 On another Windows machine, test the connection to the machine you just configured by running the
following command:
Test-WsMan IP-or-DNS-of-machine
For example: Test-WsMan 12.34.56.78
The output will be similar to:
wsmid : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
ProductVendor : Microsoft Corporation
ProductVersion : OS: 0.0.0 SP: 0.0 Stack: 2.0
If you use the following command, the output lists the contents of the C drive:
Invoke-Command -ComputerName IP-or-DNS-of-machine -ScriptBlock { Get-ChildItem C:\ }
-credential domain\administrator
4 Open a command prompt and configure the physical machine (WinRM host) to enable communication
with the PowerShell plug-in through the HTTP protocol.
If you use PowerShell 2.0, be sure to enclose the commands in single quotes, as follows:
winrm set winrm/config/service/auth '@{Basic="true"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/client/auth '@{Basic="true"}'
winrm set winrm/config/client '@{AllowUnencrypted="true"}'
If the WinRM host machine is in an external domain, you must also run the following command to
specify the trusted hosts:
winrm set winrm/config/client @{TrustedHosts="host1, host2, host3"}
You can use the following command to verify the settings after you finish making changes:
winrm get winrm/config
Using the Horizon vRealize Orchestrator Plug-In
72 VMware, Inc.