Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR - Start-SPORetentionChecker - Show policies protecting a site #213

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion ActionPlans/Start-SPORetentionChecker.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@

#>

<# DEV Setup ------------------------------------------------------
import-module C:\GitHub\O365Troubleshooters\O365Troubleshooters.psm1 -Force
Set-GlobalVariables
#Start-O365TroubleshootersMenu
Connect-IPPSSession -UserPrincipalName [email protected] -Prefix cc
------------------------------------------------------------------- #>

<# To-Do
- Decide either to create a function to connect to SPO or not
- Get user input
- Evaluate the site against the pocilies found
- Create the section to present the policies
- Enumerate the scenarios where the script might not be conclusive
#>

Clear-Host
Connect-O365PS "SCC"

Expand Down Expand Up @@ -144,7 +159,6 @@ $HealthyPolicies += $PoliciesLeanReport |
$_.DistributionResult.count -eq 0 -and
$_.Mode -eq "Enforce"
}
#$Policies[0] | FL

# Filter Distribution issues (Mode not: 'Enforce'; Status not: 'Success'; Results not: empty)
$DistributionIssues = New-Object -TypeName "System.Collections.ArrayList"
Expand Down