Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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 / /managedRuntimeVersion:4.0
share|improve this answer

Your Answer


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.