USERSCRP - User Script generation routine ------------------------------------------------------------------------------- Sren Granfeldt 3/93 Version 1.0 All rights reserved HISTORY REPORT ------------------------------------------------------------------------------- This is a detailed section which holds history information about the intervention period of the utility USERSCRP - Version 1.0 03/03/93 first release OVERVIEW ------------------------------------------------------------------------------- This utility derived from the need to handle a lot of users and do special things with their home directories or other things related to specific users. The MAKEUSER utility that comes with the Novell NetWare packet is very efficient for creating or deleting users and USERSCRP may be used in conjunction with MAKEUSER to delete a lot of users easily(see included file DELETE.SCP). Among other things I have also used USERSCRP to create DOS batch-files to clear users home directories for certain files. USERSCRP is useful for anything concerning special Novell NetWare users. COPYRIGHT AND LICENSE INFORMATION ------------------------------------------------------------------------------- USERSCRP was written using the Turbo Pascal compiler from Borland International. The source, if supplied, may not compile using other Pascal compilers. USERSCRP is supplied for personal, private use. Feel free though to distribute the included file(unmodified). the utility shall be supplied or used in its original, unmodified form, which includes this documentation; proper credit must be expressed if the utility is used commercially; no special/extra fee is charged; the utility may not be included - or bundled - with other goods or services. Exceptions may be granted upon written request only. This also applies to clubs and distributors. Please direct your inquiries, complaints, suggestions, etc., to: Sren Granfeldt Roald Amundsensvej 21 9210 Aalborg S Denmark Phone +45 98 14 42 04 E-Mail sg@dc5101.aalborges.dk HOW TO USE USERSCRP ------------------------------------------------------------------------------- This section describes how to use USERSCRP on your system. You must be logged in to the file server on which you want to obtain user information from. Your default file server also have to be the one you wish to make changes to. To log in to the file server, use the LOGIN utility supplied with the standard Novell NetWare packet. When you start USERSCRP from the commandline you will see the following information - User Script, NETUtil 1.0, Copyright 1993 by Sren Granfeldt Generates user scripts from Novell NetWare Bindery. USERSCRP source[.SCP] searchmask [/Q] source Name of scriptmask file. searchmask Mask used to search thru Novell NetWare Bindery. /Q Use quiet mode(suppress screen output). As you can see USERSCRP needs some information from you in order to function properly. You must create a script file for USERSCRP to use when creating the merge file. This script file need not have a special format but the file extension must be .SCP. Currently USERSCRP supports two keywords for replacing stuff in the scriptmask file. These keywords are - {FULLNAME} USERSCRP will replace this keyword with the user objects fullname. {USERNAME} USERSCRP will replace this keyword with the user objects objectname. Please note that the keywords MUST be uppercase letters to be recognized correctly by USERSCRP. You may examine the included file DELETE.SCP to get further information on using USERSCRP keywords. The keywords may be placed any where you like in the scriptmask file. Like using wildcards for searching for files in the DOS file system you can use wildcards for searching for objects in the Novell NetWare Bindery database which is automatically created during the installation of the Novell NetWare File System on your file server. You need also to supply a searchmask - this is required by USERSCRP so that the correct user information is merged with the scriptmask file. Here are some examples of searchmasks for use with USERSCRP when searching thru the bindery - A* .......... Returns objects from the bindery that have a userid that begins with an (A), i.e. ANDY or ANN. *A* .......... Returns objects that have an (A) included somewhere in their userid, i.e. DONALD. * .......... Returns all bindery objects; you would properly use this searchmask most of the times. When you specify the searchmask, you must remember that the searchmask given refers to the users login name(userid) and not the users fullname. Please note that USERSCRP only searches for bindery objects of type user. By default USERSCRP writes the merged information to the screen. If you want to you can pipe(|) this information in to another utility or re-direct(>) it to a file, i.e. a batch-file, a MAKEUSER .USR-file or anything your heart desires. As many other utilities you have a possibility to alter the behaviour of USERSCRP. Specify the /Q option to suppress the header information when creating the final scripts.