So i was actually working with a co-worker yesterday and had a similar need. We had to reset the LEM agent certs across all hosts. I updated the scripted that we created to include the ability to change the LEM IP Address or Hostname.
The cert reset part is disabled in the script.
to test it out, comment out line 5 and add a new line like the follow, with just a single server name.
$complist = “testserver”
We are making some assumptions that the Window Servers are 64-bit and that WinRM is configured on them.
Change IP/Hostname where the LEM agent is pointed
Let me know how if goes and what questions you have.