Multiple Logon Scripts in one GPO

  • Thread starter Thread starter Adam
  • Start date Start date
A

Adam

I have 5 different scripts I need to run on various users
computers at startup. Do I need to make 5 different GPOs
for our five different departments to get them to run? Is
there a way to use a single GPO and assign the startup
scripts to a security group?

Any Help is Greatly Appreciated.
 
No you can use the same GPO and make the login script run against groups in
the same script if you want. One was is to use IFMEMBER.EXE. Just put
ifmember.exe in you script directory.

Then in your script you can run the script if they are member of a certain
group. Por Ejemplo.

:Group1
ifmember "Group1"
if not errorlevel 1 goto Group2
net use F: \\server\share or whatever script you want.

:Group2
ifmember "Group2"
if not errorlevel 1 goto "next group etc"
net use F: \\server\share or whatever script you want.
 
Back
Top