Skip to content

This repository contains PowerShell snippets to demonstrate Azure Information Protection (AIP) functionality when interacting with the wider Microsoft cloud platform.

License

Notifications You must be signed in to change notification settings

Azure-Samples/Microsoft-Information-Protection-PowerShell-Samples

Repository files navigation

page_type languages products description
sample
powershell
azure
This repository contains PowerShell snippets to demonstrate Microsoft Information Protection (MIP) functionality when interacting with the wider Microsoft cloud platform.

Microsoft Information Protection Samples

This repository contains PowerShell snippets to demonstrate Microsoft Information Protection (MIP) functionality when interacting with the wider Microsoft cloud platform.

Checkout the Changelog to see what samples are currently avaialble.

The scripts are licensed "as-is." under the MIT License.

Prerequisites

This will depend on the target the scripts are run agains:

Getting Started

After the prerequisites are installed or met, perform the following steps to use these scripts:

Script Usage

  • Download the contents of the repository to your local Windows machine
  • Extract the files to a local folder (e.g. C:\Microsoft-Information-Protection-Samples)
  • Run PowerShell x64 from the start menu
  • Browse to the directory (e.g. cd C:\Microsoft-Information-Protection-Samples)
  • For each Folder in the local repository you can browse to that directory and then run the script of your choice
  • Most the scripts require authentication first. Auth examples can be found in the Authentication folder.
  • Example Authentication script usage:
    • To connect to the Exchange Online PowerShell use the script from C:\Microsoft-Information-Protection-Samples, run "cd .\Authentication"
    • Once in the folder run .\Authenticate to EXO.ps1 and select whether this needs to be via Exchange Online Protection (EOP) This sequence of steps can be used for each folder....

Disclaimer

Some script samples retrieve information from your O365 tenant, and others may create, delete or update data in these tenants. Understand the impact of each sample script prior to running it; samples should be run using a non-production or "test" tenant.

Questions and Comments

We're always interested in feedback. If you have any comments to share about the PowerShell samples you can send your questions and suggestions to us in the Issues section of this repository.

Your feedback is important to us. Connect with us on Stack Overflow. Tag your questions with [MicrosoftIP].

Additional Resources

Copyright

Copyright (c) 2022 Microsoft. All rights reserved.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

About

This repository contains PowerShell snippets to demonstrate Azure Information Protection (AIP) functionality when interacting with the wider Microsoft cloud platform.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published