General discussion

Locked

Logon Script Issues

By sowolabi ·
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 conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by curlergirl In reply to Logon Script Issues

In order for the "Ifmember" command to work, the workstations have to be able to find the ifmember.exe program file. This is not part of the OS, it is a resource kit utility - I believe it's in the Win2K resource kit, and you can download it from the MS website. If you can't find it, drop me an email and I'll just send it to you. You need to put it someplace where all workstations can access it - I usually just copy it into the NETLOGON share folder.

Hope this helps!

Back to Networks Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums