Solved

Login scripts and set commands

Posted on 2008-10-16
3
319 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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...
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

724 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