Run Batch File without being logged in

We took over a client that is running windows server 2008 and has some batch files running nightly processes from their vendor software.  In order to run these batch files, you have to be logged in to the server.  Even if we have the options checked to run whether user is logged in and we set the username and password.  We spoke with the vendor and they stated that you have to be logged in to the server to run the batch file.  So, my question, does anybody know a piece of software that would emulate the server being logged in without us actually having to leave it logged in?  For obvious reasons, I don't want to leave the server logged in all the time.  Thanks for your help in advance.
LVL 1
jruskeyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AnuroopsunddCommented:
you can schedule the batch file in task scheduler. pass the username and password in the wizard by which it should run...
you do not require to logon if the task is scheduled through task schedular.
0
robertarkCommented:
The task has to run under a username. Pick one. Afterwards, check the account rights (in security policy) and ensure the "logon as batch" is enabled (see: http://www.brooksnet.com/faq/117-02.html)

Next, create a task that runs the batch with the options "Run whether user is logged in or not" and "Run with highest privileges"
0
jruskeyAuthor Commented:
I already told you we have done that and it doesn't work and the vendor states it won't work.
0
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

ltswebCommented:
Have you tried the built-in Windows Task Scheduler?  That allows you to launch a program under a user's credentials.  It is great to schedule batch files, server restarts, and launch applications.

Regards!
0
jruskeyAuthor Commented:
LTSWEB - If you are talking about task scheduler, yes.  That is what doesn't work and what the vendor states won't work.  That is why we are looking for another solution.
0
robertarkCommented:
jruskey: are the servers on a domain? If so, check the domain security policy for overrides.
0
jruskeyAuthor Commented:
Let me make this clear - It does not work in task scheduler.  We have verified this with the vendors.
0
AnuroopsunddCommented:
Ok. it seems that this is a problem with the application design as your vendor is also saying. in worst case you can do a RDP to the server with this username and just disconnect to lock the account... so the user is logged in...
0
jruskeyAuthor Commented:
I agree that it is not ideal and I wish I could have the vendor fix that.  However, I can't.  With the RDP, that is fine in most cases.  However, a server reboot would reset this. Also, we have term server on this server and have it log out idle and disconnected sessions, so it isn't a viable solution
0
ltswebCommented:
Ok, sorry, I think something was delayed in EE.  When I posted, there were no comments or responses.

Task Scheduler is designed to run applications in a user session, so if that doesn't work try:

1) dedicated workstation that runs app and you keep it locked
2) virtual workstation/server

I assume the vendor would know if there is a work around for their code.  If they don't have an answer, then there is likely not one.

We have an app that runs on a dedicated server b/c it too can't run as a service or inside Task Scheduler.  The users know that when the credit cards don't go through or their  reports don't run, they have to log in and run the batch files.

Good Luck!
0
Neil RussellTechnical Development LeadCommented:
How often does it run?
You could have a scheduled task on ANOTHER server that opens an RDP session to the server where it NEEDS to run, has stored credentials so it logs on automatically without the need for a password, has the task you require to run listed in the STARTUP for this user account and the last thing in that task is to logoff.

Easy :D
0
jruskeyAuthor Commented:
How would I accomplish the automatic rdp?
0
AnuroopsunddCommented:
this should solve the problem.....
http://www.donkz.nl/
0
compdigit44Commented:
We use System Scheduler to run batch jobs as you are and it has never failed us... http://www.splinterware.com/products/wincron.htm
0
jruskeyAuthor Commented:
Do you run the professional version or free version?
0
jruskeyAuthor Commented:
compdigit - I can't get the system scheduler to log the server in at a certain time.  Is it because it is a virtual server?
0
compdigit44Commented:
I use the professional edition.  Another option which is free is to download the RunAsSPC program http://robotronic.de/runasspcEn.html then create a batch file that will reference the runasspc program and the other program that you need to run at a given time
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jruskeyAuthor Commented:
Do you schedule it to log into the PC Automaticall?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.