Click here to Skip to main content
13,449,902 members (53,422 online)
Rate this:
Please Sign up or sign in to vote.

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
Why would you stop the server before deployment?
krish8888 12-May-16 3:42am
to move arifacts to iis server
And why does it require the stopping?
krish8888 13-May-16 0:16am
we need copy artifacts to iis server na
Did you read my question before answering? Why stopping?
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 |
Web03-2016 | 2.8.180318.3 | Last Updated 12 May 2016
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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