But if you are like me trying to run this script from laptop not joined to domain, accessing UX by IP address, and UX does not have root and device certificates installed, you will run into issues with script.
First issue I ran into was related to Powershell version. This script requires Powershell v.3 otherwise you get this error:
Please read comments in the script:
#if the cert on your UX is not trusted by your browser you will need to add the certificate thumbprint via the CertificateThumbprint parameter
In my case "trusting" cert in browser didn't help with script error.
Next step was to get root cert from my lab CA and import it on my laptop as Trusted root CA cert:
Next I changd NIC settings to point to lab DC as DNS server and test browsing to UX by FQDN sbc1000.ux.net. It worked.
Now if I run PS script it does exactly what it supposed to do - copies backup config file to local PC:
For more details and Lync Powershell scripts check Shane's Lync Cmdlets blog