You are here: Home > Products > Network Inventory Explorer > User Manual > Using Logon Scripts for Running Clients on Network Computers

Using Logon Script for Running Clients on Network Computers

Using a logon script to start Clients

Create Script

  1. Create a .bat file on your computer (for example, logon.bat) with the code:
    start /B \\Server\foldername\nieclient.exe
    * .bat file code
    where \\Server is the "Computer name" of the computer on which you previously created a share with the client files (for example, WIN-BVA3SRGRT23), foldername is the share name (it may contain the further folder path) that contains the client executable file (for example, Inventory_Client).

    Computer name

Create Local Group Policy

  1. Start the Domain Group Policy Editor. This can be done in two ways:
    • Click Start - Run - enter "gpedit.msc" and hit Enter (OK)
    • Use the shortcut keys WINDOWS + R - enter gpedit.msc
    • Local Group Policy
  2. Configure a user logon script so that the script executes when a user logs in:
    User Configuration - Windows Configuration - Scripts (login / logout)
    Policy Scripts (login/logout)
  3. In the window on the right, select Login - click the Add button - select the previously created script (.bat file) logon.bat
    The bat-file in the window Properties: Login

Domain Group Policy Creation

  1. On the domain controller, go to the directory C:\Windows\SYSVOL\sysvol\yourdomain\scripts
    (where yourdomain is a domain name)
  2. Copy the previously created script to this folder
  3. Run the Domain Group Policy Editor on the domain controller Start - Run - gpmc.msc (or with shortcut keys Windows + R - enter gpmc.msc).
    Domain Policy Editor
  4. Find the policy "Default Domain Policy" on the opened window for editing group policies of the domain (we renamed it to logon_script for convenience or create a new group policy named logon _script) and make a right-click on it, then click Edit.
    Create new policy named logon_script
  5. Go to the policy User Configuration \ Windows Configuration \ Scripts (Log In / Out system)
  6. On the right side of the window, open the Login policy
    Policy Login
  7. Select the policy Login, make a double-click on it to open Properties. Click Add... and select your script.


Related Links: