1.

Solve : Run batch file based on user logged in.?

Answer»

Hi All

Can anyone HELP me out here. I want a login script to run based only on PEOPLE from a specific domain.

I want a batch file to be run based on say Domain1\authenticated users.

I cannot use group policy for this one.

ThanksOn some machines, the %userdomain% variable contains the domain name and the %username% variable contains the login name. You should be able to string them TOGETHER for your purposes: %userdomain%\%username%

This is confusing, are not all users who successfully login considered authenticated users?

Hope this helps. 8-)Yes they are but i have users logging into machines on a different domain to what the user accounts are on. For security purposes we have different domains on different vlans ie no CROSS talk between vlans



Discussion

No Comment Found