Forum Discussion
Cameron_Stephens
Jan 13, 2025Copper Contributor
Create DLP Printer Groups via PowerShell
Hi all, can we use PS commands or import a CSV to create printer groups in Endpoint DLP? My customer has a couple of hundred corporate printers across the org and i'd prefer not to add them one by one.
Thanks.
- vicwingsingIron Contributor
Cameron_Stephens, There doesn't seem to be a specific Powershell cmdlet for this. I'd love to be proven wrong as I share your challenge.
I checked https://learn.microsoft.com/en-us/powershell/module/exchange/?view=exchange-ps#policy-and-compliance-dlp and https://learn.microsoft.com/en-us/powershell/exchange/connect-to-scc-powershell?view=exchange-ps
Nick-MSFT is this in the roadmap?- MartijnvanGeffenOccasional Reader
Set-PolicyConfig (ExchangePowerShell) | Microsoft Learn
Use Json and DlpPrinterGroups parameter
Example above is what we did for network shares but should be same for printers, When in doubt create 1 in GUI and look at it with get-policyconfig for the exact Json structure. than create and set.