Solved

Login scripts and set commands

Posted on 2008-10-16
3
305 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
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 the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now