OWSUG.ca

Welcome to Ottawa's Windows Server User Group Community!
Welcome to OWSUG.ca Sign in | Join | Help
in Search

SMS

Query to report OU information for Machines

For full details please see:

http://www.myitforum.com/forums/query-to-report-OU-information-for-Machines-m235317.aspx

 

select 
  R.Name0,
  max(OU.System_OU_Name0)
From
  dbo.v_R_System R
  join dbo.v_RA_System_SystemOUName OU on OU.ResourceID = R.ResourceID
  join dbo.v_FullCollectionMembership FCM on FCM.ResourceID = R.ResourceID
Where 
  FCM.CollectionID = 'SMS00001'
group by
  R.Name0
Published Thursday, April 05, 2012 11:49 AM by SMSUG.ca
Filed under: , , ,

Comments

No Comments
Anonymous comments are disabled

This Blog

Syndication

Powered by Community Server, by Telligent Systems