|
We are an educational environment. We have many users that roam between buildings and their drive mappings need to change depending on the building they are in. If they are in 1 school, they need to map drive G to the server in that building's Apps folder. If they are in another building, they need to map that server's Apps folder and so on. Below is the primitive logon batch file I have been using, which actually works. It is very slow though and I would like to convert it to Kix. Notice that I have 2 servers in each building, but the drives need to be mapped to the fs1 in each building. Also, I have about 15 buildings. I only pasted in the portion from 2 of the buildings. Thanks to anyone who can help me.
Chris
if /i "%LOGONSERVER%"=="\\ps01-fs1" (net use g: \\ps01-fs1\apps) if /i "%LOGONSERVER%"=="\\ps01-fs2" (net use g: \\ps01-fs1\apps) if /i "%LOGONSERVER%"=="\\ps01-fs1" (net use i: \\ps01-fs1\installs) if /i "%LOGONSERVER%"=="\\ps01-fs2" (net use i: \\ps01-fs1\installs) if /i "%LOGONSERVER%"=="\\ps01-fs1" (net use r: \\ps01-fs1\resources) if /i "%LOGONSERVER%"=="\\ps01-fs2" (net use r: \\ps01-fs1\resources) if /i "%LOGONSERVER%"=="\\ps01-fs1" (net use t: \\ps01-fs1\ttl_net) if /i "%LOGONSERVER%"=="\\ps01-fs2" (net use t: \\ps01-fs1\ttl_net) if /i "%LOGONSERVER%"=="\\ps01-fs1" (net use m: \\ps01-fs2\smecourses) if /i "%LOGONSERVER%"=="\\ps01-fs2" (net use m: \\ps01-fs2\smecourses) if /i "%LOGONSERVER%"=="\\ps01-fs1" (net use s: \\ps01-fs2\sme) if /i "%LOGONSERVER%"=="\\ps01-fs2" (net use s: \\ps01-fs2\sme)
if /i "%LOGONSERVER%"=="\\ps04-fs1" (net use g: \\ps04-fs1\apps) if /i "%LOGONSERVER%"=="\\ps04-fs2" (net use g: \\ps04-fs1\apps) if /i "%LOGONSERVER%"=="\\ps04-fs1" (net use i: \\ps04-fs1\installs) if /i "%LOGONSERVER%"=="\\ps04-fs2" (net use i: \\ps04-fs1\installs) if /i "%LOGONSERVER%"=="\\ps04-fs1" (net use r: \\ps04-fs1\resources) if /i "%LOGONSERVER%"=="\\ps04-fs2" (net use r: \\ps04-fs1\resources) if /i "%LOGONSERVER%"=="\\ps04-fs1" (net use t: \\ps04-fs1\ttl_net) if /i "%LOGONSERVER%"=="\\ps04-fs2" (net use t: \\ps04-fs1\ttl_net) if /i "%LOGONSERVER%"=="\\ps04-fs1" (net use m: \\ps04-fs2\smecourses) if /i "%LOGONSERVER%"=="\\ps04-fs2" (net use m: \\ps04-fs2\smecourses) if /i "%LOGONSERVER%"=="\\ps04-fs1" (net use s: \\ps04-fs2\sme) if /i "%LOGONSERVER%"=="\\ps04-fs2" (net use s: \\ps04-fs2\sme)
|