Share via


Active Directory module for PowerShell Core 7.

Question

Monday, June 29, 2020 3:06 PM

Hi everyone!

  How to install Active Directory module for PowerShell Core 7?

  I found those but I do not know which one should I use to export users data from our domain. I need to export specific users attributes like description, displayName, initials, mail, name, sn, street, streetAddress, telephoneNumber and sAMAccountName.

PS C:\Users\Doria> Find-Module *activedirectory*

Version              Name                                Repository
                                              
3.0.0.0              xActiveDirectory                    PSGallery 
5.0.0                ActiveDirectoryCSDsc                PSGallery 
2.0.0.1762           Microsoft.Azure.ActiveDirectory.PI… PSGallery 
6.0.1                ActiveDirectoryDsc                  PSGallery 
1.2.0.0              AdminToolbox.ActiveDirectory        PSGallery 
1.2                  ud-activedirectory                  PSGallery 
2.0.0.9              ActiveDirectoryTools                PSGallery 
1.5                  ActiveDirectory-ps4all              PSGallery 
1.7.0                CPolydorou.ActiveDirectory          PSGallery 
19.0.7354.0          ActiveDirectoryCmdlets              PSGallery 
0.0.5.1              SUBnet192.ActiveDirectory           PSGallery 
1.1.1                cActiveDirectory                    PSGallery 
1.0.0.9              ActiveDirectoryStig                 PSGallery 
0.1.10               BitTitan.Runbooks.ActiveDirectory   PSGallery 
0.2002.2             ActiveDirectory.Toolbox             PSGallery 
0.1.10               BitTitan.Runbooks.ActiveDirectory.… PSGallery 
1.0.0                ActiveDirectoryFever                PSGallery 
1.1.4                POSHOrigin_ActiveDirectoryDNS       PSGallery 
1.1.0.0              myActiveDirectory                   PSGallery 
1.0.4                cActiveDirectorySecurity            PSGallery 
1.0.0                CPolydorou.ActiveDirectoryLDAP      PSGallery 
0.2.0                PS.ActiveDirectoryTools             PSGallery 

PS C:\Users\Doria>

Thanks.

Doria

All replies (4)

Monday, June 29, 2020 3:27 PM ✅Answered | 1 vote

Hi,

PowerShell 7 (Core) is meant as a a cross platform automation tool, note well that it cannot do everything that Windows PowerShell 5.1 can do, therefore I'd suggest you keep using Windows PowerShell 5.1.

The Active Directory module should be compatible with PowerShell 7, make sure you're running a supported OS with the latest RSAT.

PowerShell 7 module compatibility
https://docs.microsoft.com/en-us/powershell/scripting/whats-new/module-compatibility?view=powershell-7

Best regards,
Leon

Blog: https://thesystemcenterblog.com LinkedIn:


Monday, June 29, 2020 6:38 PM | 1 vote

It works for me in windows 10 1909.


Monday, June 29, 2020 7:04 PM | 1 vote

Yes with Windows 10 version 1809+ or Windows Server 1809+ it should work.

Blog: https://thesystemcenterblog.com LinkedIn:


Monday, June 29, 2020 10:30 PM

Thanks, I will do it!

  

Doria