Jump to content

SQL - Find Multiple Workstations

Recommended Posts

I wanted to take a moment and share this with you folks. We have a client that is swapping out a ton of outdated workstations, and the communication from the internal IT folks is lacking. This has caused our agent counts to naturally go up as we deploy our LT agents through GPO.

We modified our offline agents monitor from 30 days down to 15 days, but we also needed another way to help find duplicate agents with the same name. This is the query I came up with:

SELECT `name`, COUNT(*) COUNT FROM `computers` GROUP BY `Name` HAVING COUNT > 1;


Hope this helps others.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now