troubleshooting Question

Run a program as administrator using .BAT file

Avatar of IT-CICA
IT-CICAFlag for Canada asked on
Microsoft SQL Server 2008
4 Comments1 Solution1893 ViewsLast Modified:

I have a SSIS package in which one of the steps is Execute Task -> execute a .BAT file and launch a program (Street sweeper).

The package runs successfully when run through Visual studio. The program runs fine when only the .BAT file is run.

But a job that executes this package, it gets stuck at this .BAT file step because the program needs to be run as administrator. (There is no 'Run as Admin' check box on the properties of .BAT file) I created a shortcut to this file, configured the shortcut to always run as admin, but the SSIS package's job still fails at this step.
I need to come up with something to always run this program as administrator through the BAT file.

Any workarounds to this?

Thanks in advance!
Database Analyst

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros