Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
I just put together the following script and it should gather what you are looking for. Open a command prompt and copy and paste the following and run it.
By default dsquery will only display a limit of 100 objects, so you may need to increase the limit modifier for dsquery depending on how many machine accounts you have in your domain (500 was a large enough limit to query all machine accounts on my current network). The following script will scan through all computer accounts in Active Directory and output the results of the machine name and its associated SID in list format to a text file named "Computer_SID.txt".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.