Jump to content
etaylor

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...