Jump to content

  • 0

How to query System and User resources at once


2 answers to this question

Recommended Posts

  • 0

Select Distinct

CS.Name0 ‘Machine Name’,

CS.UserName0 ‘User Name’,

RU.Full_User_Name0 ‘Full Name’,

UOU.User_OU_Name0 ‘Users OU’,

RA.IP_Subnets0 ‘Subnet’

From v_Gs_Computer_System CS

Join v_RA_System_IPSubnets RA on RA.ResourceID = CS.ResourceID

Join v_R_User RU on RU.Unique_User_Name0 = CS.UserName0

Join v_RA_User_UserOUName UOU on UOU.ResourceID = RU.ResourceID

Where UOU.User_OU_Name0 = ‘DomainName.COM/OuName’

Order by CS.Name0, CS.Username0, RU.Full_User_Name0, RA.IP_Subnets0



IP subnet part is an additional info here

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.

Answer this question...

×   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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.