Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6109947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:27:40+00:00 2026-05-23T14:27:40+00:00

I have a method that runs executes a batch file. This worked until I

  • 0

I have a method that runs executes a batch file. This worked until I implemented the IIS7 integrated pipeline authentication, restricting access to any static files hosted in my app.

I have since found out that adding this change, that the process tries to execute through the NETWORK SERVICE account instead of my impersonation token in my web.config.

Is there any reason for this or a way for me to force the method to use the impersonated user?

EDIT

Of course now Ive implemenet the integrated pipeline, the application sees the batch file as a static file and was trying to access it via the annoymous user account, which was set to application pool identity, which in turn is using NETWORK SERVICE account.

the files were situated in a separate class library directory on the hard drive and not hosted through the application. I have tried to rectify this by adding them to a folder in my application, hoping that now integrated pipeline would see that the user is authenticated and allow access. This is not the case, the batch files are still executed using the annoymous authentication account. 🙁

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:27:41+00:00Added an answer on May 23, 2026 at 2:27 pm

    If anyone gets here then I would suggest heading to this site

    http://blogs.msdn.com/b/alejacma/archive/2007/12/20/how-to-call-createprocesswithlogonw-createprocessasuser-in-net.aspx

    I found that the createprocessasuser method works a treat. But now Im struggling with pipes to get the standard output from said method. Im using this post to help with this,

    How to get standard output from CreateProcessWithLogonW?

    hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My partner and I have a webcam site that basically runs the old-school method....Every
I have a method that creates a MessageDigest (a hash) from a file, and
I have a block of code that runs within a TransactionScope and within this
I have a Winforms App (.NET 3.X) That runs a method in a class
I have a stand alone java program having 'main method' that runs continuously in
I have a perl script that runs a series of batch scripts for regression
We have an application that runs a routine like: protected string _largeFile; Execute() //this
I have a java project that runs on a webserver. I always hit this
We have a service that runs methods used for data import/export at specified intervals.
I have class method that returns a list of employees that I can iterate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.