Installing Active directory module in PowerShell 7

how to install active directory modules on powershell 7 verison ?

not straight forward if you are not on a latest windows version.

https://twitter.com/Steve_MSFT/status/1016438391687147520

but you can always use windows compatibility module to achieve this.

https://github.com/PowerShell/PowerShell/issues/6083#issuecomment-427081507

https://www.powershellgallery.com/packages/WindowsCompatibility/1.0.0

Thank you.