Click here to Skip to main content
15,667,626 members
Articles / Programming Languages / PowerShell


2 bookmarked

Implementing Azure Information Protection in MS Office documents and PDFs programmatically

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
20 Jun 2021CPOL3 min read
How to set classification label to an Excel/Word/PDF file at the time of its creation during runtime programmatically
In this example, we will create an Excel/PDF/Word file with some dummy data and will invoke PowerShell command Set-AIPFileLabel to classify these documents programmatically. This solution is targeted for developers, architects, COE working on automating business processes that involve MS Excel/Word/PDFs. For more interesting articles, tips & tricks please visit my blog -


Daily Counts


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Written By
Employed (other)
India India
I am currently employed with a top global bank as Technical manager and part of Robotics Process Automation maintenance team with over 9 years of experience in digital automation space and delivered projects across industries such as Telecom, Insurance, Finance, Retail, Banking etc.

Comments and Discussions