Quantcast
Channel: Symantec Connect - Endpoint Management - Discussions
Viewing all articles
Browse latest Browse all 6689

Assign Owner in SQL - need help

$
0
0
I need a solution

So I have SQL that will find all computers with no owner. 

SELECT
vc.Guid,
vc.Name,
u.name
FROM
vComputer vc
LEFT JOIN vAssetUserOwner auo ON vc.Guid = auo._AssetGuid
LEFT JOIN vUser u ON auo._UGuid = u.Guid
WHERE
u.name is null
 

And I have SQL that will find computers with a name LIKE '%SERVER%'

SELECT *
FROM vRM_Computer_Item vC
WHERE vC.[Name] LIKE '%SERVER%'

ORDER BY vC.Name ASC

But I need help:

I need to find all the computers, with a name like server, with no owner, and then assign them to the department IT. 

Can some one help me figure out the SQL?

Thanks,
Jeremy

 


Viewing all articles
Browse latest Browse all 6689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>