Solved

Login scripts and set commands

Posted on 2008-10-16
3
315 Views
Last Modified: 2008-10-17
(Windows 2003 and 2008 Windows active directory domain)

if i have a set statement in a login script
eg
set ABC = 123

and another set statement within the Grop Policy Preferences setting ABC to another value

who would win the conflict.?
Are Login script run before Group policy or is it the other way around ?
0
Comment
Question by:titn003
3 Comments
 
LVL 2

Expert Comment

by:munk33
ID: 22729600
Why not just test it?  Set both to different values in a sandboxed environment, and see which will take precedent.  I would expect it to be the logon script, but checking would surely be the best method?
0
 
LVL 15

Accepted Solution

by:
fishadr earned 500 total points
ID: 22730330
Group Policis will apply first, then the logon scripts set on the user accounts in Active Directory Users and Computers. Therfore you need to be careful how you apply settings to avoid the scenario that you mention.

Most companies implement scripts via group policy as it is easier to modify lots of users by controlling via GPO's
0
 
LVL 38

Expert Comment

by:Shift-3
ID: 22730594
The SET command sets a variable temporarily, not persistently.  It only lasts for the duration of the batch script and and any scripts called by that script.  Any scripts which are run independently will not have the variable set.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question