Closed
Description
Cannot import module 'Microsoft.Entra' version 1.0.6 on Windows Server 2019 Version 10.0.17763 Build 17763
Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:
- Make sure you can reproduce this issue using the latest released version of
Microsoft.Entra
orMicrosoft.Entra.Beta
. - Please search the existing issues to see if there has been a similar issue filed.
Describe the bug
To Reproduce
Steps to reproduce the behavior:
- Execute
ipmo Microsoft.Entra
in a PowerShell 5.1 console - Error returned:
ipmo : At C:\Program Files\WindowsPowerShell\Modules\Microsoft.Entra.Groups\1.0.6\Microsoft.Entra.Groups.psm1:1302
char:191
+ ... group (max 64 characters). It must use ASCII characters (0–127).")]
+ ~
Missing closing ')' in expression.
At C:\Program Files\WindowsPowerShell\Modules\Microsoft.Entra.Groups\1.0.6\Microsoft.Entra.Groups.psm1:1302 char:191
+ ... group (max 64 characters). It must use ASCII characters (0–127).")]
+ ~
Parameter declarations are a comma-separated list of variable names with optional initializer expressions.
At C:\Program Files\WindowsPowerShell\Modules\Microsoft.Entra.Groups\1.0.6\Microsoft.Entra.Groups.psm1:1302 char:191
+ ... group (max 64 characters). It must use ASCII characters (0–127).")]
+ ~
Missing ')' in function parameter list.
At line:1 char:1
+ ipmo microsoft.entra
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ParserError: (:) [Import-Module], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingEndParenthesisInExpression,Microsoft.PowerShell.Commands.ImportModuleCommand
Expected behavior
The module is imported.
Debug Output
⚠ ATTENTION: Be sure to remove any sensitive information that may be in the logs.
Debug Output
``` ipmo microsoft.entra -Debug VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\microsoft.entra\1.0.6\microsoft.entra.psd1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions. At C:\Program Files\WindowsPowerShell\Modules\Microsoft.Entra.Groups\1.0.6\Microsoft.Entra.Groups.psm1:1302 char:191 + ... group (max 64 characters). It must use ASCII characters (0–127).")] + ~ Missing closing ')' in expression. At C:\Program Files\WindowsPowerShell\Modules\Microsoft.Entra.Groups\1.0.6\Microsoft.Entra.Groups.psm1:1302 char:191 + ... group (max 64 characters). It must use ASCII characters (0–127).")] + ~ Parameter declarations are a comma-separated list of variable names with optional initializer expressions. At C:\Program Files\WindowsPowerShell\Modules\Microsoft.Entra.Groups\1.0.6\Microsoft.Entra.Groups.psm1:1302 char:191 + ... group (max 64 characters). It must use ASCII characters (0–127).")] + ~ Missing ')' in function parameter list. ipmo : At C:\Program Files\WindowsPowerShell\Modules\Microsoft.Entra.Groups\1.0.6\Microsoft.Entra.Groups.psm1:1302 char:191 + ... group (max 64 characters). It must use ASCII characters (0–127).")] + ~ Missing closing ')' in expression. At C:\Program Files\WindowsPowerShell\Modules\Microsoft.Entra.Groups\1.0.6\Microsoft.Entra.Groups.psm1:1302 char:191 + ... group (max 64 characters). It must use ASCII characters (0–127).")] + ~ Parameter declarations are a comma-separated list of variable names with optional initializer expressions. At C:\Program Files\WindowsPowerShell\Modules\Microsoft.Entra.Groups\1.0.6\Microsoft.Entra.Groups.psm1:1302 char:191 + ... group (max 64 characters). It must use ASCII characters (0–127).")] + ~ Missing ')' in function parameter list. At line:1 char:1 + ipmo microsoft.entra -Debug + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ParserError: (:) [Import-Module], ParentContainsErrorRecordException + FullyQualifiedErrorId : MissingEndParenthesisInExpression,Microsoft.PowerShell.Commands.ImportModuleCommand ```Module Version
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 1.0.6 Microsoft.Entra.Applications {Add-EntraApplicationOwner, Add-EntraServicePrincipalDelegatedPermission...
Script 1.0.6 Microsoft.Entra.Authentication {Add-EntraEnvironment, Connect-Entra, Disconnect-Entra, Find-EntraPermis...
Script 1.0.6 Microsoft.Entra.CertificateBased... {Get-EntraUserCBAAuthorizationInfo, Get-EntraUserCertificateUserIdsFromC...
Script 1.0.6 Microsoft.Entra.DirectoryManagement {Add-EntraAdministrativeUnitMember, Add-EntraCustomSecurityAttributeDefi...
Script 1.0.6 Microsoft.Entra.Governance {Get-EntraDirectoryRoleAssignment, Get-EntraDirectoryRoleDefinition, Get...
Environment Data
Name Value
---- -----
PSVersion 5.1.17763.7131
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.7131
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1