mirror of
https://github.com/admindroid-community/powershell-scripts.git
synced 2025-12-17 08:25:20 +00:00
Disable Self service purchase in M365
Updated the code to install latest MSCommerce module
This commit is contained in:
parent
02be18815a
commit
dd2f8aea21
@ -7,7 +7,7 @@ Website: admindroid.com
|
||||
=====================================================================================
|
||||
#>
|
||||
|
||||
Install-Module -Name MSCommerce -RequiredVersion 1.8 -Scope CurrentUser #once you install you should remove this line
|
||||
Install-Module -Name MSCommerce -Scope CurrentUser #once you install you should remove this line
|
||||
Import-Module -Name MSCommerce
|
||||
Connect-MSCommerce #sign-in with your global or billing administrator account when prompted
|
||||
Get-MSCommerceProductPolicies -PolicyId AllowSelfServicePurchase | Where { $_.PolicyValue -eq “Enabled”} | forEach {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user