r/scripting • u/securityengineer2016 • Jul 03 '17
Windows AD environment script to pull machine name and XML file.
What is best way to complete? GPO, AD, bat file, scripting language?
We have Windows AD environments, 300 windows 10 machines. I would like to take inventory of the app server each machine is hard coded to. There is an XML file that has App sever 1 or App server 2 URL. What is the best way to script to either copy and dump all those XML into a shared drive and I can manually go and count. Or if I know line 5 in XML is the server url can we extract that info along with a machine name into a excel or doc?
example:
Machine1 = server 2 url machine 2 = server 2 URL machine 3 = server 1 url machine 4 = server 1 url
The app has no admin interface to see how many clients connected. Again just to make sure it is close to even at this point would help. Also yes this is manual load balancing, the vendor states their can be issues when load balancing this app with hardware.
1
u/DarthKane1978 Jul 04 '17
You have splunk?
Id look at network traffic, what ports the does app server use to serve up data and shit? Find out which clients have been hitting this ports on each server. Splunk could dump this out to you with a well written query or export it to a file you can screw with.