We are a school district with over 200 schools. I am compiling a report of all of the Windows Primary Domain Controllers in our district. However I would like to be able to change the report to only show assets from certain regions within the district. We have each schools IP ranges specified as an Asset Group under IP Address Range Locations. Looking for a way to use the Location Name (or Asset Group Name) to only show the assets for a set of schools within a specific region in the school district.
i.e. only show assets for schools whose Location Name (Asset Group name/IP Address Range Location) start with CR
Here is the report I have so far that shows all of the Windows Primary Domain Controllers for the entire district:
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tsysOS.OSname,
tblAssets.Description,
tblComputersystem.Lastchanged,
tsysOS.Image As icon,
tblAssets.IPAddress
From tblComputersystem
Inner Join tblAssets On tblComputersystem.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where tblComputersystem.Domainrole = 5 And tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName