After updating to PowerShell 7-preview.6, I'm no longer able to import the ActiveDirectory module without providing the full path due to C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules no longer being in $env:PSModulePath. I know there was an update to Import-Module with this version that would use implicit remoting to import the module via Windows PowerShell, but it does not appear to be working as expected.
Steps to reproduce
Import-Module ActiveDirectory
Expected behavior
Module imports successfully by name.
Actual behavior
>> Import-Module ActiveDirectory
Import-Module: The specified module 'ActiveDirectory' was not loaded because no valid module file was found in any module directory.
Environment data
Name Value
---- -----
PSVersion 7.0.0-preview.6
PSEdition Core
GitCommitId 7.0.0-preview.6
OS Microsoft Windows 10.0.18362
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
CC @SteveL-MSFT
After updating to PowerShell 7-preview.6, I'm no longer able to import the ActiveDirectory module without providing the full path due to
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modulesno longer being in$env:PSModulePath. I know there was an update toImport-Modulewith this version that would use implicit remoting to import the module via Windows PowerShell, but it does not appear to be working as expected.Steps to reproduce
Import-Module ActiveDirectoryExpected behavior
Module imports successfully by name.
Actual behavior
Environment data
CC @SteveL-MSFT