Click here to Skip to main content
13,705,065 members
Rate this:
 
Please Sign up or sign in to vote.
Hi

iam working to do automate deployment using powershell.

how to write a powershell script to stop/start iis server apppol

What I have tried:

Import-Module WebAdministration
cd IIS:\
cd .\AppPools
Get-WebAppPoolState bala
Stop-WebAppPool bala

here i wrote a script to stop one application .
Posted 11-May-16 19:17pm
Comments
   
Why would you stop the server before deployment?
—SA
krish8888 12-May-16 3:42am
   
to move arifacts to iis server
   
And why does it require the stopping?
—SA
krish8888 13-May-16 0:16am
   
we need copy artifacts to iis server na
   
Did you read my question before answering? Why stopping?
—SA
krish8888 13-May-16 3:01am
   
to stop iis application pool not iis server ..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180920.1 | Last Updated 12 May 2016
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100