WindowsCompatibility icon indicating copy to clipboard operation
WindowsCompatibility copied to clipboard

IIS WebAdministration does not load properly via Windows Compatibility

Open doctordns opened this issue 6 years ago • 2 comments

Using the IIS WebAdministration module with WIndowsCompatibilty does not load the IIS: provider. into a PowerShell 7 session.

To reproduce:

  1. Install Web-Server
  2. Using WInCompat: Load-WinModule -Name WebAdminstration
  3. Do: DIR IIS:\ and you get the error.

doctordns avatar Sep 19 '19 14:09 doctordns

This begs the question: does the WindowsCompatibility module even support using providers for modules like this one that drag their heels, still use PSSnapins, and don't run on .NET Core?

KirkMunro avatar Oct 17 '19 22:10 KirkMunro

At present, this does not appear to be supported. Certainly it does not work.

Unfortunately, there are many modules that are badly designed such that they can not work in PowerShell 7. WSUS, for example, is not supported and uses methods (so can't be supported by WInCompat). In this case, to do many operations with IIS, you need the IIS: provider also not supported.

doctordns avatar Oct 19 '19 08:10 doctordns