?
Solved

Batch file

Posted on 2006-10-19
7
Medium Priority
?
451 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 1500 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
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Introduction to Processes
Suggested Courses

743 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