Powershell Script to change IIS AppPool

import-module webadministration
dir IIS:\AppPools | ForEach-Object {
#Not able to change the pipeline mode through 'Set-ItemProperty'
&"$env:windir\system32\inetsrv\appcmd.exe" set apppool $_.Name /managedPipelineMode:"Classic"
$poolNme = 'IIS:\AppPools\'+$_.Name
Set-ItemProperty -Path $poolNme -name enable32BitAppOnWin64 -value FALSE
} 
Advertisements

About Ramasankar

My name is Ramasankar Molleti, and I have been working on sql server over 10 years, primarily focusing on Database Administration, Architect , Development and Business intelligence of sql server. I also hold various Microsoft certifications (Microsoft Certified Information Technology Professional, Microsoft Certified Technology Specialist, and Microsoft Certified Solution Associate). Disclaimer The views expressed on this website/blog are mine alone and do not reflect the views of my company. All postings on this blog are provided “AS IS” with no warranties, and confers no rights. The owner of https://sqlram.wordpress.com will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of this information.
This entry was posted in IIS, Powershell. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s