Maybe I forgot to tell you that I launch manually the script after having initiated a VPN connection from a laptop to the domain.

Thanks for all of you guys to help me solve that problem. I changed in my main script the call to others script using the @startdir macro, but still does not work.

I have access to the \\Domain\netlogon share, but my main script is linked with the user's primarygroup, then according to the primarygroup tested it calls an other script.

Then my major problem is to detect that primarygroup that remains blank when I launch the script manually.
I tested also the UDF script but the result is the same.

An LDAP request would not be the solution instead of a WinNt ?

Is there a solution to my problem ?


Edited by yellowdog (2014-10-23 11:59 AM)