Click here to Skip to main content
15,888,251 members
Please Sign up or sign in to vote.
2.00/5 (1 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
Comments
Sergey Alexandrovich Kryukov 12-May-16 3:06am    
Why would you stop the server before deployment?
—SA
krish8888 12-May-16 3:42am    
to move arifacts to iis server
Sergey Alexandrovich Kryukov 12-May-16 8:42am    
And why does it require the stopping?
—SA
krish8888 13-May-16 0:16am    
we need copy artifacts to iis server na
Sergey Alexandrovich Kryukov 13-May-16 0:30am    
Did you read my question before answering? Why stopping?
—SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900