Re: Detecting group membership from a .cmd file

Tech-Archive recommends: Fix windows errors by optimizing your registry



Link to ifmember
http://www.microsoft.com/downloads/details.aspx?familyid=07C2F6D7-815E-4FA0-9043-4E4635CCD417&displaylang=en

--
Paul Bergson
MVP - Directory Services
MCT, MCSE, MCSA, Security+, BS CSci
2003, 2000 (Early Achiever), NT

http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup
This posting is provided "AS IS" with no warranties, and confers no rights.

"maverick" <maverick@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:16FAB6F6-54AE-4119-BFF1-3ACB6598DD6B@xxxxxxxxxxxxxxxx
You can use if member resource kit tool to find that out.
eg:if member 'sales'
<run xyz.cmd>

cheers
maverick




"Mario - Roma" wrote:

I need to detect if the user running a .cmd file is member of a specific
Active Directory group.
How can I check the group membership?
I need to know if the user is member of the "Sales" group or not.
I made some tests using the dsget command, but it looks complkex and is
slow
at runtime.
Is there a simpler and smarter solution?
Regards
Mario



.



Relevant Pages

  • Re: ADAM user object limitations?
    ... The member attribute is a linked value attribute, ... Joe Richards Microsoft MVP Windows Server Directory Services ... >>>my ADAM instance runs on a Domain Controller. ... make sure you don't have too many connections hanging around. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Interview Question
    ... Gracias Jorge, I have setup a Virtual PC lab and I will test the scenarios ... Member of a group that has a DENY to create user objects ... Joe Richards Microsoft MVP Windows Server Directory Services ...
    (microsoft.public.win2000.active_directory)
  • RE: ParallelPeriod function gives wrong results
    ... Thanks Alejandro. ... It is certainly behaving like BOL describes. ... specified member. ... WITH Member Measures.[Previous Year Sales Amt] AS ...
    (microsoft.public.sqlserver.olap)
  • RE: ParallelPeriod function gives wrong results
    ... "Charles Kangai" wrote: ... specified member. ... WITH Member Measures.[Previous Year Sales Amt] AS ... which rows two through six are wrong and the last row is also wrong (my query ...
    (microsoft.public.sqlserver.olap)
  • RE: Filling in Blanks
    ... with member Measures.LastNotEmpty as ' iif(isempty([Unit Sales]), ... > I am trying to fill in the blanks with the last known ... After reading Chp3 in George Spofford's book MDX ...
    (microsoft.public.sqlserver.olap)