Originally Posted by
kelfro
I had used such kind of a script earlier but I dont remember the script now. To me, the script looks correct. I didn't understand what modifier is talking about /I. Modifier, can you please tell me where exactly to add this tag?
Code:
@echo off
rem check to see if a SBS member
\\SERVER1\Clients\Setup\setup.exe /s SERVER1
rem
rem check if server - skip drive mappings if server
rem
if /I %computername% == Server1 goto end
if /I %computername% == AVPS3 goto end
if /I %computername% == Avpserver1 goto end
if /I %computername% == NAS goto end
if /I %computername% == ERP goto end
rem
rem All client computers but server run these commands
rem
net time \\Server1 /set /y
net use z: /d
net use z: \\NAS\users\%username%
net use y: /d
net use y: \\nas\shared
:end
Note the '/I' in all the conditions.
Bookmarks