Advertisement

03.03.2008 at 07:49AM PST, ID: 23209662
[x]
Attachment Details

Environment switch for AD with login scripts

Asked by thaapavuori in Windows 2003 Server, Windows 2000 Server, Microsoft Operating Systems

Tags: Microsoft, Windows Server, 2003, AD (there is also one W2K AD)

I have login scripts switch call other login scripts when user is logging in. E.g. If user belong to security group A login script calls script A, if user belong to security group B login script calls script B and if user belong both groups login script calls scripts A and B.

At the moment that first scripts is calling the second script by server name. These scripts are located in netlogon folder in all AD servers. The problem is that if that specific server goes down my logins don't work anymore.

My script looks at the moment like that:
ifmember "domain\security group"
if errorlevel 1 call \\servername\Netlogon\script.cmd

Does anyone know any environment switch (like %username%) or other solution that when a user is logging in the first script can call that second script from all of my ADs (not only that specific server)?
Start Free Trial
[+][-]03.03.2008 at 07:58AM PST, ID: 21032675

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.03.2008 at 08:01AM PST, ID: 21032705

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Windows 2003 Server, Windows 2000 Server, Microsoft Operating Systems
Tags: Microsoft, Windows Server, 2003, AD (there is also one W2K AD)
Sign Up Now!
Solution Provided By: Mikkk
Participating Experts: 3
Solution Grade: A
 
 
[+][-]03.03.2008 at 08:10AM PST, ID: 21032803

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.03.2008 at 11:09AM PST, ID: 21034596

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.03.2008 at 11:35AM PST, ID: 21034852

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628