ExchangeOnlineManagement 3.8.0 released

Hi All,
This Morning Microsoft has released the ExchangeOnlineManagement 3.8.0 PowerShell Module.
- PowerShell Gallery ExchangeOnlineManagement 3.8.0
v3.8.0:
- Support for providing an Access Token with Connect-IPPSSession.
- Get-VivaModuleFeature now returns information about ParentFeature, ChildFeature, and PolicyModes. These values represents parent and child features of a Viva App feature along with available enablement modes for policies for the feature.
- Added a new parameter IsUserOptedInByDefault in Add-VivaModuleFeaturePolicy and Update-VivaModuleFeaturePolicy cmdlets and its return value in all VivaModuleFeaturePolicy cmdlets. The value represents if by default, users are opted in/out by the policy if the user has not set a preference. This parameter can be used to set up complex policies, such as keeping the feature enabled in your tenant while opting out the impacted users by default, effectively soft disabling the feature for those users.
- Deprecated Get-VivaFeatureCategory cmdlet and all category-related parameters and return values (CategoryId, IsCategoryEnabled).
I am using the new PSResourceGet here instead of the PowerShellGet commands.
Show installed Versions and what’s available in PowerShell Gallery. You need to use the -Prerelease Parameter to show Preview Versions of a Module
Get-InstalledPSResource ExchangeOnlineManagement -Scope CurrentUser
Find-PSResource ExchangeOnlineManagement -Prerelease
Uninstall old Module
Uninstall-PSResource ExchangeOnlineManagement -Scope CurrentUser -SkipDependencyCheck
I’ve updated the M365PSProfile PowerShell Module and the Uninstall-M365Module Function with the Parameter -FileMode. It will delete the Module Folder of that Module.
Uninstall-M365Module -Modules ExchangeOnlineManagement -Scope CurrentUser -FileMode
Installing the Module and show the installed Module
Install-PSResource -Name ExchangeOnlineManagement -Scope CurrentUser -Prerelease
Get-InstalledPSResource -Name ExchangeOnlineManagement -Scope CurrentUser
Connect to Exchange Online and get a Mailbox
Connect-ExchangeOnline -ShowBanner:$false
I am using the M365PSProfile PowerShell Module. It worked without the Profile. So it had to be something that was loaded during the Module.
I’ve checked the Loaded assemblies and found out that the PowerShell Module “Microsoft.PowerShell.PSResourceGet” also loading “Microsoft.Identity.Client.dll” and it seems that this causes the issue.
Import-Module M365PSProfie
Install-M365Module
Connect-ExchangeOnline -ShowBanner:$false
[System.AppDomain]::CurrentDomain.GetAssemblies()
Let’s remove that module
Get-Module
Remove-Module -Name Microsoft.PowerShell.PSResourceGet -Force
Now it works
Connect-ExchangeOnline -ShowBanner:$false
Get-Mailbox -Identity a.bohren@icewolf.ch
Disconnect-ExchangeOnline -Confirm:$false
Or you can simply use my M365PSProfile Module - find the Documentation here: https://github.com/fabrisodotps1/M365PSProfile/
Install-PSResource -Name M365PSProfile
Add-M365PSProfile
Install-M365Module
I find it odd, that the same Issue does not exist in PowerShell 7.x
Connect-ExchangeOnline -ShowBanner:$false
Get-Mailbox -Identity a.bohren@icewolf.ch
Disconnect-ExchangeOnline -Confirm:$false
New Features
- Support for providing an Access Token with Connect-IPPSSession.
I’ve made a detailed Demo with code in this Article ExchangeOnlineManagement 3.8.0-Preview1 released
-
Get-VivaModuleFeature now returns information about ParentFeature, ChildFeature, and PolicyModes. These values represents parent and child features of a Viva App feature along with available enablement modes for policies for the feature.
-
Added a new parameter IsUserOptedInByDefault in Add-VivaModuleFeaturePolicy and Update-VivaModuleFeaturePolicy cmdlets and its return value in all VivaModuleFeaturePolicy cmdlets. The value represents if by default, users are opted in/out by the policy if the user hasn not set a preference. This parameter can be used to set up complex policies, such as keeping the feature enabled in your tenant while opting out the impacted users by default, effectively soft disabling the feature for those users.
Get-VivaModuleFeature -ModuleId VivaInsights
Get-VivaModuleFeature -ModuleId VivaInsights | ft Id, ParentFeature,ChildFeature, PolicyModes
Deprecated Get-VivaFeatureCategory cmdlet
Get-VivaFeatureCategory
Regards
Andres Bohren