Discussion Locked

Logon Scripts with Win 98

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to write a logon script (.vbs) that will map drives according to which user has logged on. Most of the commands do not work on the Windows 98 system. Does anyone know how to do this, or is there any sites I can go to for help?

Thanks

7 replies

by rvkempen

It looks like you're trying to invent the wheel again, try using kixtart, it's includen in the nt4 resource kit, if you don't have it you can also download it from www.kixtart.org.
It has anything you need, and is simpler in use than vb scripting.Some sample rules:

If ingroup( "Friends" )
use x: "\\mainserver\c$"
endif

If @userid = "Ron"
use y: "\\mainserver\alldata$"
endif

If ingroup( "nitwits" )=0 or @userid = "BigBoss
Logout
endif

Etc.

For win98 and Win96 users, you must have the kixtart RPC running on the ntserver, since they cannot check user or group entrys.

This one is easy, just put the kixtart files in your netlogon, type kxrpc -install, go to the services and start the service.

But thisis all explained better in the manual provided.

I'm sure you like the utility, since you can change registry setting, and everything else, according to group membership, or username.

Happy scripting ;)

Ron.

by rvkempen

W98, and 95 have no clue about membership or username, so you must use a util which tells them what de need to know, this is why you need the kxrpc when using kixtart on 98 or 95 machines.

by stavros41

It must be possible to do similar processes by using the wshnetwork.username object and if..then statements.

Can anyone help?

by ccsbz

the easy way create a batch file, e.g login.bat insert the following line or lines
NET USE \\computer name\folder and take it from there. need help on NET USE, at command promtp: tpye net use/?

This discussion is closed to new replies.