Hi Experts!
I am trying to find a way to query a large list of servers to find out what domain they are in or the workgroup.
I have a query I came up with to search the domain for the computers to get their DN, but my issue is that I am trying to query the servers directly because of the number of servers.
Instead of querying the AD, if I query the server then it's not in the domain if I were prompted for credentials I could enter creds for standalone servers I've setup where the name is the same and password, then for the other domains I have an account.
Would this suggestion be the best way to get this info? I'm trying to get an inventory on the servers just domain, workgroup, IP address?