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 7596361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:54:02+00:00 2026-05-30T21:54:02+00:00

As part of as our Team Build MSBuild script, we have a deployment batch

  • 0

As part of as our Team Build MSBuild script, we have a deployment batch file which I need to execute on a remote server:

<Exec Command="psexec -accepteula \\servername D:\Build_Drop\DeploySites.bat "/>

I can confirm it is not permissions or firewall: if the bat command is changed to run iisreset or calc.exe for example, the command will work.

I have tried -s and >nul flags, and also wrapping the batch file in a call to cmd. I have tried with and without quotes around the bat cmd.

All the options I have tried will work fine from the cmd line on the build server, but none will work from within the build script itself.

Any ideas?

  • 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-30T21:54:03+00:00Added an answer on May 30, 2026 at 9:54 pm

    Adding a -i parameter to psexec seems to have worked.

    Oddly, we now get the error message:

    The command "psexec -accepteula \\server -i cmd /c "D:\Build_Drop\DeploySites.bat"" exited with code 5. Please verify that you have sufficient rights to run this command.
    

    But the command does actually work

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

Sidebar

Related Questions

We have a part of our program which can save a diagnostic file for
As part of our web application's build process, I have set up our XSLT
As a part of our application I need to write simple workflow system which
I need to build an auction site on SharePoint 2010 at work. Our team
I am performing a database restore as part of our TFS 2010 Team build.
My team and I are designing a diagnostic test tool as part of our
As part of our database revision control (and auto-installation) procedures we need to be
As part of our build process and evolving database, I'm trying to create a
As part of our automated build procedure we are trashing and reconstructing our IIS
I am refactoring a part of our legacy app which handles exporting and importing

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.