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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:23:49+00:00 2026-05-14T21:23:49+00:00

A follow-up on this system management question : Since I probably will not get

  • 0

A follow-up on this system management question:

Since I probably will not get much feedback on serverfault I’ll give it a try here.

My main concern is to reflect the dependencies between the databases, services ans tasks/jobs I’ll have to manage.

Besides considering Powershell, I even thought about using MSBuild because it would allow for modeling dependencies and reuse configuration targets.

In other words: What technology should I use to develop a flexible solution that will allow me to stop service A, B and C on machine D in the right order and disable task E on machine F when taking down database X?

… and I’d like to reuse the part for stopping service B and C when taking down database Y.

  • 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-14T21:23:49+00:00Added an answer on May 14, 2026 at 9:23 pm

    If you are familiar with PowerShell and want to work with dependencies, try psake. What it looks like:

    psake script.ps1:-------
    properties {
     $dbServer = 'sqlexpress'
     ...
    }
    task default -depend StopServer1, StopServer2
    
    task StopS1 -depend MakeS1Backup, StopSqlServer1 {
     ...
    }
    task MakeS1Backup {
     ... make backup
    }
    task StopSqlServer1 {
     stop-service ...
    }
    # and anything similar to StopServer2
    

    Then you may call it like this (there are more options):

    Invoke-Psake script.ps1 
    #or
    Invoke-Psake script.ps1 -task StopS1 #calls only StopS1 task and all other scripts it depends on
    #or
    Invoke-Psake script.ps1 -task MakeS1Backup #only backups S1, it doesn't depend on anything else
    

    What it does – it stops server 1 (task StopS1) and before that it processes all the tasks that StopS1 depends on. So before stopping S1 backup of S1 is made and Sql server 1 is stopped and so on.

    I like it much better than msbuild configuration, which is very verbose and ugly (although very powerfull).

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

Sidebar

Related Questions

Trying to follow this MSDN tutorial to get a web response but not getting
I just follow this DIHQuickStart , try to import data to solr from mysql.
Well, my question is about Accounting Management. I have a system already, it's work
This system would be used to manage sales, parts, repairs, follow-ups, leads etc for
As a follow up to this question here . I am calling pgnuplot using
Alright, so this question isn't exactly about thread management... well, sort of. I am
I have this follow system that lets you follow certain type of statuses. When
I'm a newbie to sql and am trying to follow this example here: http://net.tutsplus.com/tutorials/php/a-better-login-system/
My web configuration looks as follows: <system.web> <compilation debug=false/> <httpRuntime executionTimeout=90/> </system.web> This is
I follow this tutorial online exactly but somehow it's giving me errors. Saying there

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.