Hello fellow Kix scripters!
My boss has given me a task which I find hard to solve with my knowledge.. hence is why I am here

What I need is:
When a user logs into Windows, whether it's on Windows XP or 7 the script need to determine which OS it logs into first.

If its Windows XP it needs to be directed to a profile path on one of our servers where the home/desktop folder is located.(We have created 2 folders for this purpose; one for each OS) In our AD,(at the user profile settings, Profile Path) we have disabled the profile path because we want to use it in the login script. Is this even remotely possible?

Our current login script is the following:
if "%OS%" == "Windows_NT" goto WINNT

REM Script for Windows 95 og 98 m.v.
:WIN9X
goto SLUT

REM Script for Windows NT
:WINNT
net use l: \\xena\pta /persistent:no
net use n: \\xena\sabusers /persistent:no
net use r: \\xena\caddata /persistent:no
net use t: \\10.10.30.21\huskvarna /user:sintermetal tangokat
net use u: \\storage\research /persistent:no
net use w: \\storage1\fj_funk /persistent:no

:SLUT
:LicenseWatch
rem \\w2kmangan\lwclient\lwinstall.bat
EXIT

Let me know if I am unclear about what I am asking for \:\)
Thanks in advance

Best regards
Andreas


Edited by Xofah (2015-06-15 11:00 AM)