Enforce IRM on all sharepoint and onedrive with powershell?

%3CLINGO-SUB%20id%3D%22lingo-sub-1493281%22%20slang%3D%22en-US%22%3EEnforce%20IRM%20on%20all%20sharepoint%20and%20onedrive%20with%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1493281%22%20slang%3D%22en-US%22%3E%3CP%3EI%20know%20that%20individually%20I%20can%20configure%20IRM%20on%20my%20OneDrive%20and%20SharePoint%20site%2C%20however%20I%20was%20wondering%20if%20there%20is%20such%20thing%20as%20powershell%20cmds%20that%20help%20force%20activate%20IRM%20on%20all%20SharePoint%20and%20Onedrive%20within%20an%20O365%20tenant%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1493281%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1493927%22%20slang%3D%22en-US%22%3ERe%3A%20Enforce%20IRM%20on%20all%20sharepoint%20and%20onedrive%20with%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1493927%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20use%20some%20CSOM-based%20script%2C%20here's%20a%20sample%20one%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Finformation-protection%2Fconfigure-office365%23configuration-for-administrators%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Finformation-protection%2Fconfigure-office365%23configuration-for-administrators%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I know that individually I can configure IRM on my OneDrive and SharePoint site, however I was wondering if there is such thing as powershell cmds that help force activate IRM on all SharePoint and Onedrive within an O365 tenant? 

1 Reply