Mark new files as sensitive by default


According to this article

I run the cmdlet Set-SPOTenant -MarkNewFilesSensitiveByDefault BlockExternalSharing

But it does not work as expected.  

When new files are added to SharePoint or OneDrive in Microsoft 365, they still can share with external users in the first few minutes. After a few minutes the DLP policy scan the files and add policy tips and block icons, then I no longer can share those files with external contacts. Any thought on this issue?

Thanks, Peter

1 Reply
best response confirmed by px091 (Contributor)
I found the answer. I have to download the most recent SharePoint Online Management Shell first.