PowerShell / WindowsCompatibility

Module that allows Windows PowerShell Modules to be used from PSCore6
Other
137 stars 33 forks source link

IIS WebAdministration does not load properly via Windows Compatibility #79

Open doctordns opened 4 years ago

doctordns commented 4 years ago

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.
KirkMunro commented 4 years ago

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?

doctordns commented 4 years ago

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.