Re: If user in group?

From: TerryM (terry_at_nospam.com)
Date: 01/05/05


Date: Wed, 5 Jan 2005 09:46:44 -0800

just the 'execute program'... but execute wscript.exe or cscript.exe with
the command line to the vbscript.
T

"Oren Zippori" <orenzp@hotmail.com> wrote in message
news:uuXBcUv8EHA.2876@TK2MSFTNGP12.phx.gbl...
> Thanks for the replay Terry.
> What object do I use in SMSI to execute and read the script exit code?
>
> thanks again,
> Oren Z
>
> "TerryM" <terry@nospam.com> wrote in message
> news:O6URMQv8EHA.2316@TK2MSFTNGP15.phx.gbl...
>> Well whatever targeting software distribution group could be used to do
>> that.. if GPO's just target the right ones, if SMS create a collection
>> with the right membership...
>>
>> However if you really want to use SMSI to do this itself you can....
>>
>> Create a vbscript that checks the membership and returns a exit code that
>> can be read on whether to proceed or not. In your SMSI script execute
>> that vbscript and wait until it exits to proceed. Read the return code.
>>
>> This vbscript could also be located on a central share if the membership
>> will change and if you know the users have a mapped drive.. of course you
>> could script that too..
>>
>> I've done this before...
>>
>> Now one thing I'm just thinking that I haven't tried that might be easier
>> is if the AD group membership is stored in the registry at logon that
>> would make it real easy because then you could just have SMSI read a
>> registry value. But I would check and see if it does that or not. If
>> not definitely research how to write a simple VB Script that checks AD
>> group membership against a list of ones you specify.
>>
>> Terry
>>
>> "Oren Zippori" <orenzp@hotmail.com> wrote in message
>> news:uxjtHcu8EHA.1564@TK2MSFTNGP09.phx.gbl...
>>> Good day,
>>> Is there any way I can find out if a user is in a specific AD group
>>> using SMS Installer? I would like to check to see if a user is a member
>>> of a specific group before I run the rest of the script.
>>>
>>> Thanks in advance,
>>> Oren Zippori
>>>
>>
>>
>
>



Relevant Pages

  • Re: vbscript fails to start windows application
    ... > I am trying to execute some applications from within vbscript using ... is the very same script that successfully starts aida32 ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: vbscript fails to start windows application
    ... > I am trying to execute some applications from within vbscript using ... is the very same script that successfully starts aida32 ...
    (microsoft.public.scripting.vbscript)
  • Re: Executing a patch with alternate credentials
    ... > I am using a vbscript to install MS OS updates and would like to use ... > different credentials to execute the patch file then that of the user ... > running the script. ...
    (microsoft.public.scripting.vbscript)
  • Re: Login script with drive mappings based on DL
    ... The script you linked will work, but it is VBScript. ... ' Bind to group to test membership. ... both security and distribution groups. ...
    (microsoft.public.windows.server.scripting)
  • vbscript fails to start windows application
    ... I am trying to execute some applications from within vbscript using ... The thing is that the same script that fails to start aida32 ... So it definitively seems to be related to Windows XP ...
    (microsoft.public.scripting.vbscript)

Loading