Logon Script Issues - TechRepublic
General discussion
September 29, 2004 at 12:45 AM
sowolabi

Logon Script Issues

by sowolabi . Updated 21 years, 9 months ago

I think my logon script has a problem.(I’m new to scriping,VERY new.)When it runs(on a network with mixed WinXP&2000 clients),It assigns everyone the right user folder, but gives everyone ALL the group folders, regardless of what membership they are!!!The printer doesnt bind, either.I believe its something very simple, but im probably too dumb to see it. Can someone please show me whats wrong with it?
Rem Logon script************************
Echo Welcome %USERNAME% to the %USERDOMAIN% Domain
REM Set The Time*******
NET TIME \\DB /SET /YES
REM Drive Mappings**********************
NET USE * /D /Y
REM Home Drive***************************
NET USE K: \\DB\%USERNAME%
REM Group Folders******************************
IFMEMBER “Management”
IF NOT ERRORLEVEL 1 GOTO Sales
NET USE I: \\DB\DBAdmin
Sales:
IFMEMBER “SalesExecs”
IF NOT ERRORLEVEL 1 GOTO SalesTwo
NET USE J: \\DB\DBSales
SalesTwo:
IFMEMBER “SalesMgr”
IF NOT ERRORLEVEL 1 GOTO ITPeople
NET USE P: \\DB\DBSales
ITPeople:
IFMEMBER “ITAdmins”
IF NOT ERRORLEVEL 1 GOTO Sales
NET USE S: \\DB\DBTechnical
:END
Rem End Script

This discussion is locked

All Comments