MSCommerce PowerShell Module 1.10

Hi All,
Today i have noticed, that there is a new MSCommerce PowerShell Module available from the PowerShell Gallery.
I didn’t notice that they revoked MSCommerce 1.10. But i am glad, that the new Version has fixed the Output.
PowerShell Gallery MSCommerce 1.10


Check the installed Module and what’s available in the PowerShell Gallery
Get-Module MSCommerce -ListAvailable
Find-Module MSCommerce


Let’s uninstall the old Module and install the newest one from PowerShell Gallery
Uninstall-Module MSCommerce
Install-Module MSCommerce
Get-Module MSCommerce -ListAvailable


List the Commands from the Module
Get-Command -Module MSCommerce


Connect with Microsoft 365 (Requires Global Administrator or Billing Administrator Role) List SelfServicePurchase Policies.
Connect-MSCommerce
Get-MSCommerceProductPolicies -PolicyId AllowSelfServicePurchase


There is a new Product, that can be disabled
- CFQ7TTC0N8SL AllowSelfServicePurchase Microsoft Purview Discovery
Update-MSCommerceProductPolicy -PolicyId AllowSelfServicePurchase -ProductId CFQ7TTC0N8SL -Enabled $False
Get-MSCommerceProductPolicies -PolicyId AllowSelfServicePurchase


Regards
Andres Bohren

M365 Logo


PowerShell Logo
