Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Paul Robson on February 24, 2003, 12:13:35 PM

Title: Updating accounts
Post by: Paul Robson on February 24, 2003, 12:13:35 PM
I'm currently working on a project for a local primary school. I have setup up a sme 5.5 server with windows 98 clients. I have two questions and would be grateful for any advice I could get.

1) Does anyone now a way of updating all my accounts on the sever so the following happens

i) All users in the group year1 are transfered to group year2
ii) All users in the group year2 are transfered to group year3
iii) All users in the group year3 are transfered to group year 4
iv) All users in the group year4 are transfered to group year 5
v) All users in the group year5 are transfered to group year 6
vi) All users in the group year6 have there accounts locked.
vii) A way of adding multiple accounts to the group year1

2) How to use the netlogon bat file so that it can be made so that if any user logs on it maps the drive H: to their home drive on the server. I know this can be done in individual netlogon bat files but was wondering if it could be done with just one. I know in NT server with an NT client you can say $Home but don't know how to do it with 98 clients.

Thanks Paul Robson
Title: Re: Updating accounts
Post by: Bill Talcott on February 24, 2003, 05:16:09 PM
1.) There was a contrib that allowed adding multiple users (from a text file I believe). I have no personal experience with it.

2.) Use the "/HOME" switch to map a home dir on Win9x. "net use H: /HOME".

You may wish to make NT and 9x sections in your netlogon.bat.

@echo off
echo.
echo Processing Logon Script...
echo.
if %OS%==Windows_NT goto NTLogon
net use H: /HOME
net use P: \Server\Share
goto End
:NTLogon
net use P: \Server\Share /persistent:no
:End
Title: Re: Updating accounts
Post by: Jonathan Storey on February 24, 2003, 07:45:49 PM
The settings for group configuration are held in the file /home/e-smith/accounts .  You could try modding this file if you know what you're doing.  Groups are defined as =group|Description| |Gid|5005|Members|username1,usernmae2,username3 etc.  It may well be possible to write a script to do this automatically.  Hope this helps this.

Regards