Can I silently accept a new server id for a PI Server via PowerShell when the script connects for the first time after the Server Id has changed?
You can accept server id changes by passing the server object returned from Get-PIServer to Connect-PIServer and use the -AcceptServerIDChange switch.
Get-PIServer SERVERNAME | Connect-PIServer -AcceptServerIDChange
Fabulous! Can't believe I missed that parameter. Thanks.
How can I perform this function now that Get-PIServer no longer exists in the newer PowerShell tool library?
To answer my own question, it looks like Connect-PIDataArchive can take care of a new server ID by itself, no switch needed.
Retrieving data ...