I think he just wants the posh (targeting a remote workstation).  doesn't care 
about making it work in CM or not for any reason. 
 


     On Tuesday, July 14, 2015 5:16 PM, Daniel Ratliff <[email protected]> 
wrote:
   

  #yiv2717366918 -- filtered {font-family:Wingdings;panose-1:5 0 0 0 0 0 0 0 0 
0;}#yiv2717366918 filtered {panose-1:2 4 5 3 5 4 6 3 2 4;}#yiv2717366918 
filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv2717366918 
filtered {panose-1:2 11 6 4 2 2 2 2 2 4;}#yiv2717366918 
p.yiv2717366918MsoNormal, #yiv2717366918 li.yiv2717366918MsoNormal, 
#yiv2717366918 div.yiv2717366918MsoNormal 
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv2717366918 a:link, 
#yiv2717366918 span.yiv2717366918MsoHyperlink 
{color:#0563C1;text-decoration:underline;}#yiv2717366918 a:visited, 
#yiv2717366918 span.yiv2717366918MsoHyperlinkFollowed 
{color:#954F72;text-decoration:underline;}#yiv2717366918 
p.yiv2717366918msonormal0, #yiv2717366918 li.yiv2717366918msonormal0, 
#yiv2717366918 div.yiv2717366918msonormal0 
{margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv2717366918 
span.yiv2717366918EmailStyle18 {color:windowtext;}#yiv2717366918 
span.yiv2717366918EmailStyle19 {color:#1F497D;}#yiv2717366918 
span.yiv2717366918EmailStyle20 {color:#1F497D;}#yiv2717366918 
.yiv2717366918MsoChpDefault {font-size:10.0pt;}#yiv2717366918 filtered 
{margin:70.85pt 70.85pt 56.7pt 70.85pt;}#yiv2717366918 
div.yiv2717366918WordSection1 {}#yiv2717366918 There is a way to do it in 
powershell, could make a ci possibly. I'll see if I can find it tomorrow.

-----Original Message-----
From: Sherry Kissinger [[email protected]]
Sent: Tuesday, July 14, 2015 06:12 PM Eastern Standard Time
To: [email protected]
Subject: Re: [mssms] OT: Get if user is an admin

Yeah, that works, but what he wants is not just that--a report in SRS.  what he 
wants is "ok, we know Sherry is the current logged on user... is the username 
"ourdomain\Sherry" somehow nested into a group, which is nested into a group, 
which is nested into a group, which is in the local Administrators group on 
this specific box?  I need to know just a "Yes" or a "No" RIGHT NOW, but I 
can't be bothered to go look that up in AD users and computers" 
That... I have no idea.  Sounds like complex LDAP queries and recursive queries 
and just... scary.  :)   



On Tuesday, July 14, 2015 4:18 PM, "Lindenfeld, Ivan" <[email protected]> 
wrote:


There’s a HINV extension someone wrote, probably Ms. Kissinger.  It puts the 
membership of all local groups into a WMI class and HINV collects it.  BAM! 
http://myitforum.com/cs2/blogs/skissinger/archive/2010/04/25/report-on-all-members-of-all-local-groups.aspx
 This works great for us, I have a little report that spits out all users in 
local admins by workstation name. Ivan Lindenfeld From: 
[email protected] [mailto:[email protected]]On Behalf 
Of Roland Janus
Sent: Tuesday, July 14, 2015 3:51 PM
To: [email protected]
Subject: RE: [mssms] OT: Get if user is an admin Bump. No one?   
From:[email protected] [mailto:[email protected]]On 
Behalf Of Roland Janus
Sent: Samstag, 11. Juli 2015 15:34
To: [email protected]
Subject: [mssms] OT: Get if user is an admin You know how to get that 
information? I’m not asking if the user has admin rights currently, considering 
also UAC, but if it is through any group, local ordomain, part of the local 
admin group and potentially can get admin rights (UAC) Something like this only 
working locally when started as the user itself:whoami /groups which works in a 
domain through domain groups:BUILTIN\Administrators                             
           Alias            S-1-5-32-544 Now the catch, also against a remote 
machine. I know the remote user account, but is that user a member of local 
administrators through any group membership? I haven’t found anything useful, 
preferable in powershell.At the end I just need true or false. It’s for a tool, 
connecting to a remote computer, retrieving the currently logged on user, but I 
can’t get the information if that user is a local admin. Have I explained what 
I’m looking for good enough?JAny ideas? -R    NOTICE: The information contained 
in this message is proprietary and/or confidential and may be privileged. If 
you are not the intended recipient of this communication, you are hereby 
notified to: (i) delete the message and all copies; (ii) do not disclose, 
distribute or use the message in any manner; and (iii) notify the sender 
immediately.




The information transmitted is intended only for the person or entity to which 
it is addressed
and may contain CONFIDENTIAL material. If you receive this material/information 
in error,
please contact the sender and delete or destroy the material/information.



  


Reply via email to