InOU

Posted on January 8, 2009 by Daniel Petri in Administrative Tools and Scripts with 0 Comments

Description

This utility is designed to run in the login script and execute batch files (or any other executable file) if the user is a member of the specified OU.

Requirements: Windows 2000/2003 domain.

If using a Windows 9X or Windows NT4 client computers, make sure the client has Active Directory Client Extension installed. Read Active Directory Client (dsclient) for Win98/NT for more info.

Current version: 1.1

Version highlights: This new version also supports computer names. You can include a computer name in the /u parameter instead of a user name. See the below samples.

Download

Download inou.zip (7kb)

You need to extract the tool/script found in the downloaded file by using WinZip or similar.

Syntax

Note: When specifying a computer account name with the /u switch, add a $ sign to the computer name.

Example:

This sample will execute ”filesrv’batchfiles’test1.bat if asafg is a member of the users OU.

This sample will executer ”filesrv’batchfiles’c.bat if the computer account computer1 resides in the domain controllers OU.

Detailed Instructions

  1. Place InOU.exe in your system path folders.
  2. Create a batch file for each of the desired OU’s. Name each file exactly as the name of the OU.
  3. Copy the InOU.exe file to the NETLOGON share.
  4. Enter the following line for each of the desired OU’s in the logon script: ”<your domain name>’NETLOGON’InOU.exe /o <OU Name>

Support

No support of any sort will be given for this script/tool or for any other script/tool found on the Petri.co.il website for that matter. If you need to contact us with any support issues, feedback or suggestions regarding the tool(s) and script(s) found on this page please write an e-mail to THIS address.

Disclaimer

The software available from GanoTools is FREEWARE. It is not in the Public Domain. Asaf Ganot retains the copyright for this work. You can use it freely but do not claim it for your own or charge others money for it.

Use these tools at your own risk. They are provided for your own personal use and enjoyment and Asaf Ganot nor Daniel Petri nor Petri.co.il do not provide any warranty for them, nor they will be held responsible for any result allegedly caused by use or misuse of any of the tools found on this page.

Back to the Tools and Scripts page.

Sponsored