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\scri
pt.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