2

Using WMI within a powershell script, how can I set the .NET runtime version of a virtual directory targetting IIS 6? I want to be able to set it to use .NET 4.0.

Many thanks

2 Answers 2

2

You will have to update the ScriptMaps. Take a look at the VBScript sample

Sign up to request clarification or add additional context in comments.

Comments

0

I don't have any access to my code from here, but ...

  • Manually configure one site to the .NET 4.0 maps
  • WMI get ScriptMaps from that virtual directory
  • WMI get the virtual directory you'd like to update (iteratively)
  • WMI set target.ScriptMaps = source.ScriptMaps
  • Commit your changes.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.