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

  • SEARCH
  • Home
  • 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 6016715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:01:21+00:00 2026-05-23T03:01:21+00:00

I have a task which is to run a batch file in IIS.. I

  • 0

I have a task which is to run a batch file in IIS.. I had use C# to develop a webpage which need to run a batch file and uses plink to execute the batch file in the command. I had tried in localhost and it works perfectly. But when i deploy to IIS, it fail.
The coding i use which is

Process.Start(@"C:\run.bat");
inside run.bat is

cd\

plink root@172.28.8.* -pw ServerPassword useradd USERNAME -p UserPassword -m -g groupname -e 2011-6-6 -s /bin/bash -c *FULL_NAME*

plink root@172.28.8.* -pw ServerPassword -m pass

Is there any other way to do this??
or is there anyway something like this

i create the batch file using C# code, the batch file will store in IIS, then execute the batch file in IIS only return a successful message to the client.

Which mean everything done in server IIS. Is there anyway to do it??

Thanks in advance.

  • 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-23T03:01:22+00:00Added an answer on May 23, 2026 at 3:01 am

    i have found the solution.

    Inside this folder C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG, there is a file call Machine.config. Open with a notpad. Ctrl+F and search for processModel, then you will find this tag <processModel autoConfig="true"/>. Change it to <processModel userName="SYSTEM" password="AutoGenerate" />

    As shown here .Then save it, make sure you backup a copy first, in case of maybe there are some errors occur.

    I hope this help as many of them is searching for this problem(run Process.Start() in C#).

    Good Luck!!

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

Sidebar

Related Questions

I have a task which I need to run in the background in my
I have a task, which I was able to do with the use of
TASK : I have an existing xml document (UTF-8) which uses xml namespaces and
I have a batch file which starts multiple instances of simple console application (Hello
I have a batch file that creates a scheduled task using schtasks like this:
I have NAnt script which as part of its project calls a batch file
I have a task which I schedule to run periodically via ScheduledThreadPoolExecutor.scheduleAtFixedRate(task, rate, ...)
I have a task which needs to be run on 'most' objects in my
I have a ant javac task which is supposed to run some annotation processor.
In my application I need to have periodically run background tasks (which I can

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.