Solved

Batch file

Posted on 2006-10-19
7
448 Views
Last Modified: 2008-01-09
Does anyone know how to create a batch file to run when someone logs into my 2003 domain I need for this to run:
authenticat.exe RA[192.168.1.10]    the authenicat.exe is is a program that is stored on the server that needs ran for our filtering solution.

thanks
0
Comment
Question by:lpounds
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 4

Expert Comment

by:dasmcse
ID: 17767801
Either use the domain group policy or a policy on the container where all the user accounts are stored to specify a login script. Then specify this vbscript:

Server = "MyServer"
Share = "MyShare"
Set objWshShell = WScript.CreateObject("WScript.Shell")      ' Create object for executing programs
objWshShell.run "\\" & Server & "\" & Share & "\" & "authenticat.exe"      ' Execute the program
Set objWshShell = Nothing      'delete the object (clean up)
WScript.Quit      ' Exit script
0
 

Author Comment

by:lpounds
ID: 17767836
what about the RA[192.168.1.10]

that needs to follow the authenicat.exe


thanks again
0
 
LVL 4

Accepted Solution

by:
dasmcse earned 500 total points
ID: 17770005
Change this
objWshShell.run "\\" & Server & "\" & Share & "\" & "authenticat.exe"
to this
objWshShell.run "\\" & Server & "\" & Share & "\" & "authenticat.exe RA[192.168.1.10]"
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:lpounds
ID: 17773634
thank you
0
 

Author Comment

by:lpounds
ID: 17773895
well the script works i know this because if i run it from the local computer it works but i still cannot get it to excute at logon  I am just testing this with my account so in AD under my profile tab and then in the logon script box i have \\ncdlc\1\new.vbs  (ncdlc is the server name, 1 is the share name for the folder that the logon script and the authenicat.exe is stored)
0
 

Author Comment

by:lpounds
ID: 17788497
I still fighting this script I now placed it in the GPO for the entire domain but it still does not seem to excute at logon does anyone know why this is?
0
 

Author Comment

by:lpounds
ID: 17791017
I am posting what I have as the Script file in case i did something wrong:
Server = "NCDLC"
Share = "1"
Set objWshShell = WScript.CreateObject("WScript.Shell")     ' Create object for executing programs
objWshShell.run "\\" & Server & "\" & Share & "\" & "authenticat.exe RA[192.168.1.10]"     ' Execute the program
Set objWshShell = Nothing     'delete the object (clean up)
WScript.Quit     ' Exit script
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question