WindowsCompatibility
WindowsCompatibility copied to clipboard
IIS WebAdministration does not load properly via Windows Compatibility
Using the IIS WebAdministration module with WIndowsCompatibilty does not load the IIS: provider. into a PowerShell 7 session.
To reproduce:
- Install Web-Server
- Using WInCompat: Load-WinModule -Name WebAdminstration
- Do: DIR IIS:\ and you get the error.
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?
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.