How Expert Network Inventory works?
Installation and Setup
Internal database
Configure ENI agent module
General settings
Inventory Data Store settings
Reports settings
Registry Key Info Tab settings
File Info Tab settings
Find Files Tab settings
Administrator's Application
Configure Administrator's Application
Department manager
Network Tree
Information pages
Software Licenses
Custom data tables
Creating, printing and exporting reports
Report Designer
How to...
Create and use users logon script
Design custom reports

Here is a brief description of the logon script from Microsoft documentation.

One of the best improvements made with Windows 2000 and Active Directory is advanced using of the login scripts. With Active Directory, administrators can create login scripts at several different levels. With Windows NT 4.0, however, the login script is much more limited and difficult to implement. With a little persistence, however, the login script can be a useful and powerful tool.

The purpose of the login script is to set the user environment. The login script is simply a batch file that resides on each domain controller. When a user logs in, this batch file will run, executing whatever commands are contained in it. These commands can consist of virtually anything that can be run from a command prompt. They can be as simple or as complex as your scripting skill allows.

The first thing you need to do when creating a login script is to plan what exactly you want to do. You may do this by creating a batch file called login.bat, and placing all of your comments and documentation in it first. A comment starts with the word "REM" without the quotes. As the script executes, anything on the line following "REM" will be ignored. You can divide the script up into sections with these remarks. For instance:


REM ***** map shared group drives *****


REM ***** map personal drive *****


REM ***** set time *****


REM ***** run software inventory app *****


REM ***** update IT directory on local drive


As you can see, asterisks or other repeated characters can help define sections even better. After planning out your login script this way, you will also have your work well documented, which is the hallmark of quality scripting.

Once you have your plan in place, the next thing to do is to fill in the actual commands. Drives can be mapped using the "net use" command:




These commands can be made conditional using variables:




You also use variables that you've created yourself. Time can be set using the net time command:




Programs can be run by typing the program name, or by using the "start" command. The start command offers many options for executing a program such as starting it with higher (or lower) priority, starting it minimized, etc. To learn more about using this command, type "start /?" without the quotes at a command prompt.

Suppose, you have Inventory client installed on shared network disk. First, you map this disk by command NET USE (see above). Further, you run client by following command:

START F:\ENI\eniagent.exe


START F:\ENI\eniagent64.exe

Well done! Once you have the script done the way you want it, you are ready to begin using it. Indicate to use this file as logon script in the Group politics console panel.

© Copyright 2002-2018 ExpertUnion.Com. All rights reserved.