💡To disable self-service purchases for Microsoft 365 Copilot

Log in to the Microsoft 365 Admin Center. Navigate to the Copilot section. Go to Settings.Locate the setting for self-service purchases of Microsoft 365 Copilot. Select Not allow to disable self-service purchases. step by step using powershell 👇
PowerShell Script

  

  
  

 

# Install the MSCommerce module
Install-Module -Name MSCommerce

# Connect to MSCommerce
Connect-MSCommerce

# Get an overview of all self-service purchase options
Get-MSCommerceProductPolicies -PolicyId AllowSelfServicePurchase

# Disable a specific self-service purchase product
# You need the ProductId from the list above
Update-MSCommerceProductPolicy -PolicyId AllowSelfServicePurchase -ProductId CFQ7TTC0HDB0 -Enabled $False

# Disable all self-service purchase products
Get-MSCommerceProductPolicies -PolicyId AllowSelfServicePurchase | ForEach-Object {
    Update-MSCommerceProductPolicy -PolicyId AllowSelfServicePurchase -ProductId $_.ProductId -Enabled $False
}
 




  

Kommentarer

Populära inlägg i den här bloggen

🚀 IntuneWin – Deploying Win32 Apps via Intune 🎯

Block Personal devices to acces to Desktop apps like teams, Onedrive etc and how to troubleshooting the issue.

🔧 Microsoft 365 Apps Admin Center: Tips & Tricks