MSCommerce PowerShell Module 1.8 released and some new SelfServicePurchase Products

Hi All,

A few days ago the MSCommerce 1.8 PowerShell Module in the PowerShell Gallery has been released.

Use AllowSelfServicePurchase for the MSCommerce PowerShell module

Check for installed version of the Module

Get-InstalledModule MSCommerce

Check what’s available in PowerShell Gallery

Find-Module MSCommerce

Uninstall old Version and install new Version of the Module

Uninstall-Module MSCommerce
Install-Module MSCommerce

Connect to M365 and view the Details

Import-Module -Name MSCommerce
Connect-MSCommerce

Get-MSCommercePolicy -PolicyId AllowSelfServicePurchase
Get-MSCommerceProductPolicies -PolicyId AllowSelfServicePurchase

Disable Self Service Purchase

Update-MSCommerceProductPolicy -PolicyId AllowSelfServicePurchase -ProductId CFQ7TTC0HVZG -Enabled $False
Update-MSCommerceProductPolicy -PolicyId AllowSelfServicePurchase -ProductId CFQ7TTC0LH3N -Enabled $False
Update-MSCommerceProductPolicy -PolicyId AllowSelfServicePurchase -ProductId CFQ7TTC0LHWP -Enabled $False
Update-MSCommerceProductPolicy -PolicyId AllowSelfServicePurchase -ProductId CFQ7TTC0LH05 -Enabled $False

Now it looks the way i want

Get-MSCommerceProductPolicies -PolicyId AllowSelfServicePurchase

Regards
Andres Bohren