Quantcast
Channel: Ivanti User Community: Message List
Viewing all articles
Browse latest Browse all 12704

Re: SQL Query on LocalGroups Members

$
0
0

Yeah, the semi-colon seems to be getting in the way.  I was getting an 'unauthorized SQL' error using the first of the two statements you provided.  When I removed the two semi-colons it worked fine, but the output showed a bunch of misplaced semi-colons, as you might expect.

 

But the good: it outputs a list of the systems that have local users in the Administrators group.  That's huge!  That was goal number 1.  Goal number 2 is a lesser extent, to show the local users themselves, without anything else (i.e. any domain accounts).  I think anything from here on out is going to be clean-up of data/code.  It sounds like the right way to do this is to take the members field and do the scrubusers as you mentioned.  Sounds like a good chance to develop some of my SQL skillz.  :-)

 

Thanks again!!  If I get a nice, efficient query put together I'll repost it here for others to see.


Viewing all articles
Browse latest Browse all 12704

Trending Articles