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

The Archive Base Latest Questions

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

I have a MSBuild build/deployment script that, as part of it’s routine, stops and

  • 0

I have a MSBuild build/deployment script that, as part of it’s routine, stops and starts a couple of Windows Services from the CI server on the deployment server.

One of the commands in the script is

net.exe use \\<ip adddress of deployment computer> /user:<ip address of deployment server>\<user> <password>

As you can see, the CI server calls net on the deployment server and tells it to use a user that exists on the deployment server.

The problem is that this results in all further calls to return access denied errors.

What is the solution to this? Must I use a domain account?

  • 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-27T14:34:33+00:00Added an answer on May 27, 2026 at 2:34 pm

    you can use the net use command and specify login credentials to the remote server:

    net use \\TheServer\ShareName /user:DomainName\User password
    

    or

    net use \\TheServer\ShareName /user:TheServer\User password
    

    in this case the user you specify is a user defined locally on TheServer

    after you finish do a net use /delete to close the connection

    net use \\TheServer\ShareName /delete
    

    you don’t have to use a domain user as long as you specify credentials that the remote server can accept

    if you can’t use a server name you should be able to use an IP instead. if it doesn’t work, try mapping the server name to an IP in the hosts file (c:\windows\system32\drivers\etc\hosts)
    and use the name in the net use command.

    Anoher thing you should check is that it is allowed to access the file shares with non-guest accounts. look here (you do this on the server you are trying to access)

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

Sidebar

Related Questions

As part of as our Team Build MSBuild script, we have a deployment batch
I have a MSBuild script that builds my windows forms application, generates the application
I have this nice little MSBuild-based daily build setup that I use on my
I have a generated (via MSBuild) Web.config that runs prior to the Build target
We have a standard MSBuild project file that is used for our different deployment
I have a msbuild script that includes creation of a few PDF's using PDF
I am using Team City as the build server, and I have a msbuild
I have developed a build system on MSBuild (NET 3.0) and cc.net to perform
MSBuild 3.5 I have the following project structure: trunk/MainSolution.sln trunk/Build/MyBuild.Proj trunk/Library/... trunk/etc... So far,
I have been tasked with automating our build process with msbuild. We have about

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.