Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Batch file

Posted on 2006-10-19
7
Medium Priority
?
452 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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

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!

Question has a verified solution.

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

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
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…
Starting up a Project

636 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