Skip to main content

Disable-MSSelfServicePurchase

SYNOPSIS

Disables self-service purchase for all products in Microsoft 365.

SYNTAX

Disable-MSSelfServicePurchase

DESCRIPTION

This function connects to the Microsoft Commerce service and disables the self-service purchase option for all products that currently have it enabled. This is useful for organizations that want to prevent users from purchasing additional services or products on their own.

EXAMPLES

EXAMPLE 1

Disable-MSSelfServicePurchase

Disables self-service purchase for all products in the Microsoft 365 tenant.

PARAMETERS

INPUTS

OUTPUTS

NOTES