To add all computers to the list of TrustedHosts


In a notepad file add the server names which aretobe added as trusted host and save it with any name, I am doing it as serverlist.txt in C:

server1.example.com,ms12.uc.com,ms13.uc.com


from powershell run the below commands.

$serverlist = get-content -Path C:\serverlist.txt

foreach ($server in $serverlist) {set-item wsman:\localhost\Client\TrustedHosts -Value $se
rver.ToString() -Force}

This should get the servers added.

You should be able to see the server

get-item wsman:\localhost\Client\TrustedHosts | fl

Comments

Popular posts from this blog

Azure Stack

Lync 2013 to Skype For Business 2015 in-place upgrade