I am trying to use the script I found on the post below, but I have to set the WMI permissions and add the account I need to use to hundreds of servers.
I got stuck trying to use the functions with a loop so I can run it against a list of servers in 1 instance and then in another instance I want to query the domain for server Operating Systems and then run the script for all servers found.
Can anyone help me with this please?
The link to the script I’m trying to use is below, I did try to ask the author a couple times but didn’t get a reply.
I’m not sure if this is the best method to do this task, so if anyone has suggestions please let me know!