Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to set all App pools/Websites on an IIS 6 and/or IIS 7 server to 4.0 instead of 3.5 in one fell swoop?

Basically we have many servers, and will be upgrading all them 4.0 from 3.5. Right clicking and changing each site would be rather cumbersome. The servers are a mix of IIS 6 and IIS 7

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You could use appcmd.exe coupled with PSEXEC.exe.

psexec.exe @file="c:\path\to\file\with\allserverx.txt" %systemroot%\system32\inetsrv\APPCMD.exe set apppool /apppool.name:www.mysite.com /managedRuntimeVersion:4.0
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.