Solved

Batch file

Posted on 2006-10-19
7
444 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
  • 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
This article will show, step by step, how to integrate R code into a R Sweave document
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now