Lansweeper logo
Home Download Features Demo Buy now Help Support forum
 
    Most requested support articles:
  Lansweeper troubleshooting guide.
  The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
  WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  How to configure the windows firewall using group policies.
  Support:  
 support@lansweeper.com  
Skype: Lansweeper  
  Mo-Fri 9h-17h CET  
Welcome Guest Search | Active Topics | Log In | Register

Untag as favorite
Software by OU
mattgbarnes
#1 Posted : Tuesday, March 08, 2011 1:50:04 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 7
We seperate our domain by division in AD and I'd like to do a software inventory for each OU. Does anyone have a report for it? Thanks!!
Lansweeper
#2 Posted : Tuesday, March 08, 2011 2:18:15 PM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,378
Try this

Quote:
Select tblADComputers.OU, tblSoftware.softwareName,
tblSoftware.SoftwarePublisher, tblSoftware.softwareVersion,
Count(tblSoftware.SoftwareID) As Total
From tblComputers Left Join
tblADComputers On tblComputers.Computername = tblADComputers.Computername
Inner Join
tblSoftware On tblComputers.Computername = tblSoftware.ComputerName
Group By tblADComputers.OU, tblSoftware.softwareName,
tblSoftware.SoftwarePublisher, tblSoftware.softwareVersion
Order By tblADComputers.OU, tblSoftware.softwareName,
tblSoftware.SoftwarePublisher, tblSoftware.softwareVersion
mattgbarnes
#3 Posted : Monday, December 19, 2011 10:01:07 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 7
That report worked perfect for what I was looking for at the time. Thanks.

I was wondering if I can make seperate reports for each OU to give the total software. I'm trying to do a count on total amount of software for each OU.

Thanks,
Matt
Lansweeper
#4 Posted : Tuesday, December 20, 2011 10:28:17 AM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,378
mattgbarnes wrote:
That report worked perfect for what I was looking for at the time. Thanks.

I was wondering if I can make seperate reports for each OU to give the total software. I'm trying to do a count on total amount of software for each OU.


For software counts of a specific OU, please use the report below. Replace "YourOU" with the OU you want to report on.

Quote:
Select tblSoftware.softwareName, tblSoftware.SoftwarePublisher,
tblSoftware.softwareVersion, Count(tblSoftware.SoftwareID) As Total
From tblComputers Left Join
tblADComputers On tblComputers.Computername = tblADComputers.Computername
Inner Join
tblSoftware On tblComputers.Computername = tblSoftware.ComputerName
Group By tblADComputers.OU, tblSoftware.softwareName,
tblSoftware.SoftwarePublisher, tblSoftware.softwareVersion
Having tblADComputers.OU = 'YourOU'
Order By tblADComputers.OU, tblSoftware.softwareName,
tblSoftware.SoftwarePublisher, tblSoftware.softwareVersion
Users browsing this topic
Guest
Untag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Contact: E-mail Lansweeper - Skype : Lansweeper
Copyright 2004 - 2011 © Hemoco bvba