Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

how to get distinguished name and operating system details for multiple machine accounts via dsquery

$
0
0

I am using this command to get the dn of multiple machine accounts in a domain

But I also need operating system details with dn..am not able to figure it out..can somebody please help..

for /f %x in (output.csv) do dsquery computer -name %x > machineoutput.csv





Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>