Re: If user in group?
From: TerryM (terry_at_nospam.com)
Date: 01/05/05
- Next message: Thierry: "Re: Deinstalling Secondary Site"
- Previous message: Joel Font: "Deinstalling Secondary Site"
- In reply to: Oren Zippori: "Re: If user in group?"
- Messages sorted by: [ date ] [ thread ]
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
>>>
>>
>>
>
>
- Next message: Thierry: "Re: Deinstalling Secondary Site"
- Previous message: Joel Font: "Deinstalling Secondary Site"
- In reply to: Oren Zippori: "Re: If user in group?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|