From 55a9cd5201b62f3934257a4e531080aaffb41427 Mon Sep 17 00:00:00 2001 From: roansmarques Date: Thu, 14 Oct 2021 13:59:25 -0300 Subject: [PATCH 1/2] New feature --- ActionPlans/Start-SPORetentionChecker.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ActionPlans/Start-SPORetentionChecker.ps1 b/ActionPlans/Start-SPORetentionChecker.ps1 index ccc9856..9f4878c 100644 --- a/ActionPlans/Start-SPORetentionChecker.ps1 +++ b/ActionPlans/Start-SPORetentionChecker.ps1 @@ -15,6 +15,13 @@ #> +<# DEV Setup ------------------------------------------------------ +import-module C:\GitHub\O365Troubleshooters\O365Troubleshooters.psm1 -Force +Set-GlobalVariables +#Start-O365TroubleshootersMenu +Connect-IPPSSession -UserPrincipalName roan@roanmarques.onmicrosoft.com -Prefix cc +------------------------------------------------------------------- #> + Clear-Host Connect-O365PS "SCC" From 703289c2077e0c939b06f57fee93a79f393ec04b Mon Sep 17 00:00:00 2001 From: roansmarques Date: Thu, 14 Oct 2021 19:42:14 -0300 Subject: [PATCH 2/2] Evaluated overall tasks of the issue --- ActionPlans/Start-SPORetentionChecker.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ActionPlans/Start-SPORetentionChecker.ps1 b/ActionPlans/Start-SPORetentionChecker.ps1 index 9f4878c..f94eadb 100644 --- a/ActionPlans/Start-SPORetentionChecker.ps1 +++ b/ActionPlans/Start-SPORetentionChecker.ps1 @@ -22,6 +22,14 @@ Set-GlobalVariables Connect-IPPSSession -UserPrincipalName roan@roanmarques.onmicrosoft.com -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" @@ -151,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"