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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:53:52+00:00 2026-05-23T07:53:52+00:00

For years, I’ve been able to do a build using a continuous build system

  • 0

For years, I’ve been able to do a build using a continuous build system like Jenkins and then remotely deploying my apps to various Unix servers. I can use the ssh and scp commands to do my bidding.

Now, I have a .NET build I’m doing. I’ve done the build using Jenkins and would now like to deploy to a remote .NET server. I need to shutdown the application, copy the files over, and then restart the application. I need to be able to do this remotely and via command line tools (no GUI tools). I am on a series of machines that are locked down, and cannot deploy stuff willy-nilly — especially to the production machines.

Is there a mechanism that will allow me to remotely shutdown the server, deploy a new set of files, and restart the application?

BONUS QUESTION

I understand that a *.cab file is somewhat similar to a Java *.jar file. That is, you can deploy a single *.cab file to a server, and the server will treat it as if it’s a bunch of files in a directory.

  • Is this correct? If so, I’d like to deploy things using the cab file.
  • There is a webapp.config file that’s part of my build that’s different for each and every server. I’d prefer to create a cab file that does not contain the webapp.config file, that way, the cab file I have can be deployed to every machine without changing it (only the webapp.config file has to be changed).

Thanks


Addendum

I just can’t win…

I have a build on machine02 and I need to deploy to machine06. Machine06 is in a DMZ, so I can’t add a domain user on it. I can only create local accounts.

With sc, I can access remote systems, but the account I’m running sc from also needs to exist on the remote system. Since I can’t create a domain account on machine06, and I can’t add a computer local account to another Windows system (i.e., make machine06\user an administrator on machine02 too)., I can’t use sc.

I tried the lp commands from Sysinternals. These allow me to specify a user name and password (which I assume is for the other system. However, I get the following error:

C:\Windows\system32>pslist \\machine02 -user remuser02 -password Swordfish

pslist v1.29 - Sysinternals PsList
Copyright (C) 2000-2009 Mark Russinovich
Sysinternals

Cannot connect to remote registry on MACHINE02:
Access is denied.
Failed to take process snapshot on MACHINE02.
Make sure that the Remote Registry service is running on the remote system, 
that you havefirewall ports allow RPC access, and your account has read
access the following key on the remote system:
    HKLM\Software\Microsoft\Windows NT\CurrentVersion\Perflib


C:\Windows\system32>

Since that user is an admin on machine02, I am sure that user has read access to the Windows registry key, and I verified that Remote Registry Access is on. I suspect that the router is blocking RPC calls.

So, sc is out since I can’t specify an account to use. The Sysinternals PS tools are out. I can’t add the sshd on the server.

  • 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-23T07:53:53+00:00Added an answer on May 23, 2026 at 7:53 am

    When deploying web applications before I’ve used vbscript and powershell plus good old fashioned xcopy (though I’d agree robocopy is probably a better copy replacement).

    So going through the requirements – I think this is the sort of thing you want to do (this should be done form a PowerShell command prompt):

    get-service iisadmin -ComputerName TARGETMACHINE | Stop-Service -force
    
    xcopy source dest
    
    get-service iisadmin -ComputerName TARGETMACHINE | Start-Service
    

    I wouldn’t use *.cab unless you wanted compression for transferring the files then I’d use a *.zip file. I don’t believe their is any real difference between the two but in general *.cab files are used in msi deployments.

    Personally, unless you have someone how understands MSI versioning well, I don’t think MSI should be used to deploy files to a web server. And even if someone did understand it I still like it’s only useful for tracking what’s installed where which can be achieved many ways whilst avoiding autoupdate etc…

    As it’s IIS you may what to remove the temporary asp.net files whilst the web site is down.

    I’ve made the assumption (from the tags) that this is a web application, hence iisadmin in the code. This would equally work with any service.

    HTH,
    Matt

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

Sidebar

Related Questions

For years I have been using the DEBUG compiler constant in VB.NET to write
For years I've been using ShellExecute() API to launch the default web browser from
Years back I built a simple mail form that has been working like a
Many years ago I wrote a system for a customer using VB3 - or
Many years ago I build a simple system for handling languageversioning of texts in
For years I have been using the following pattern to remove duplicates from an
For years, maybe 10, I've been fascinated with cryptography. I read a book about
For years I've been reading about XML and I have just not quite grokked
Over the years, I've tried to avoid instanceof whenever possible. Using polymorphism or the
I remember some years ago, when I learned C using Turbo C, it had

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.