Computing.Net > Forums > Windows 95/98 > Login Scripts for W95 clients

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Login Scripts for W95 clients

Reply to Message Icon

Name: mlg
Date: October 2, 2007 at 02:56:49 Pacific
OS: w95 revision 2
CPU/Ram: 512 mb
Product: Dell gx 260
Comment:

Here´s my w95admin.bat which I use in mixed w95 and 2k/xp environments. I place this file here:
c:\WINNT\SYSVOL\sysvol\olympus.local\scripts\
Under the profiles tab I write w95admin.bat (no path...) in the script field... in the connect xx to field I write: h: \\huvudsrv\users\%username%
.............
@echo off
@if "%os%"=="Windows_NT" goto NT_OS
net use h: /home
net use i: \\huvudsrv\c$
net use j: \\huvudsrv\d$
net use k: \\huvudsrv\e$
@echo on
@goto END
:NT_OS
net use i: \\huvudsrv\c$/PERSISTENT:NO
net use j: \\huvudsrv\d$/PERSISTENT:NO
net use k: \\huvudsrv\e$/PERSISTENT:NO
@echo on
pause
:END
As you can see there are some slight differences between the two scripts. /home line doesn't exist in the NT_OS section. The reason is that the /home command root maps you to the users folder. You don´t want that, of course. Instead you want h: to be mapped directly to your own home directory. Windows 2000 and XP maps you automatically when if you have correctly filled in the connect to field.
The net use command makes persistent mappings for you by default. Due to this you will get error messages if you don´t use the /PERSISTENT:NO switch.
It is necessary that this script is selected under the profiles tab. Don´t use a gpo for it.
GPO:s only work for win2k/xp clients - not for win 2k/xp/nt-clients




Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: Login Scripts for W95 clients

Win95 and Login Scripts www.computing.net/answers/windows-95/win95-and-login-scripts/125531.html

Logon scripts for w95 www.computing.net/answers/windows-95/logon-scripts-for-w95/11802.html

Login Script Fun www.computing.net/answers/windows-95/login-script-fun/110840.html