Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Stop IIS Website before scp-copy to target

HI all!

I am searching for an option to stop an IIS website before deployment to it. 

I tried using ssh and appcmd (which outside of bitbucket works fine), but I cannot get ssh to cooperate with my wishes. 

Anyone done something similar already?



1 answer

Hi @Andreas Kroll 

I am also working on the same requirement. Did you find the solution for this? Please suggest.

Thanks in advance.

I have created my own deployment via scripts. 

Our project consists of 3 different projects each having it's own needs, so I just put a script on top that lets me command what to deploy where and which feature or release branch to use. 


As for the IIS issue: I found that as soon as there is a background job involved, it's not only necessary to stop the site, but you have to additionally stop the app pool process as well. 

As long as I do that, everything works fine. 

Deployment is done via ssh commands: 

ssh %USER%@%SERVER% c:\windows\system32\inetsrv\appcmd.exe stop apppool %MEAPPPOOL%
ssh %USER%@%SERVER% c:\windows\system32\inetsrv\appcmd.exe stop site %MESITE%
Like Oz Benodiz likes this

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events