Solved

Batch file

Posted on 2006-10-19
7
446 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…

770 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