Skip to content

BohrenAn/CA-Export

 
 

Repository files navigation

CA-Export

PowerShell Script to help save your CA policys as a html format.

If not already connected the Script will connect MgGraph to the Beta Endpoint and use the Scopes documented below

Connect-MgGraph -Scopes 'Policy.Read.All', 'Directory.Read.All','Application.Read.All'
Select-MgProfile -Name "beta"

To run the Script use this Command

.\Export-CaPolicy.MSGraph.ps1

Export-CaPolicy_01 Export-CaPolicy_02 Export-CaPolicy_03

History

13.02.2023 Fixed:

  • Test Module and Connect-MgGrap
  • Addet Session Controls
  • Output is now devided into Conditions, SessionControls, GrantControls
  • Code Cleanup and changed from Spaces to Tabs

15.02.2023 Fixed:

  • Output is now devided into Users, Cloud Apps or Actions, Conditions, GrantControls, SessionControls (like in CA Portal)
  • Minor rearrangement of Rows

18.04.2023 Fixed:

  • Fixed Script Parameter "PolicyID" -ConditionalAccessPolicyId
  • Addet PolicyID to HTML Output

03.05.2023 Fixed:

  • Changed UPN to Displaynames for AD Objects because Groups don't have a UPN

License

Shield: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%