From e16c147e7db7674acde96dc43d5ad752001fc32c Mon Sep 17 00:00:00 2001 From: DrIOS <58635327+DrIOSX@users.noreply.github.com> Date: Sun, 23 Mar 2025 15:39:50 -0500 Subject: [PATCH] add: Adds new CSV for PowerShell commands and updates PnP update check handling --- Book1.csv | 37 ++++++++++++++++++++++ CHANGELOG.md | 8 +++++ source/Public/Invoke-M365SecurityAudit.ps1 | 2 ++ 3 files changed, 47 insertions(+) create mode 100644 Book1.csv diff --git a/Book1.csv b/Book1.csv new file mode 100644 index 0000000..65c1024 --- /dev/null +++ b/Book1.csv @@ -0,0 +1,37 @@ +Product,Command +SharePoint,Get-SPOTenant +SharePoint,Get-SPOSite +SharePoint,Get-SPOTenantSyncClientRestriction +SharePoint,Get-PnPTenant +SharePoint,Get-PnPTenantSite +SharePoint,Get-PnPTenantSyncClientRestriction +Microsoft Graph,Get-MgDirectoryRole +Microsoft Graph,Get-MgDirectoryRoleMember +Microsoft Graph,Get-MgUser +Microsoft Graph,Get-MgGroup +Microsoft Graph,Get-MgDomain +Microsoft Graph,Get-MgOrganization +Microsoft Graph,Get-MgSubscribedSku +Microsoft Graph,Get-MgUserLicenseDetail +Teams,Get-CsTeamsClientConfiguration +Teams,Get-CsTeamsMeetingPolicy +Teams,Get-CsTenantFederationConfiguration +Teams,Get-CsTeamsMessagingPolicy +Exchange Online,Get-EXOMailbox +Exchange Online,Get-OrganizationConfig +Exchange Online,Get-SharingPolicy +Exchange Online,Get-RoleAssignmentPolicy +Exchange Online,Get-OwaMailboxPolicy +Exchange Online,Get-SafeLinksPolicy +Exchange Online,Get-SafeAttachmentPolicy +Exchange Online,Get-SafeAttachmentRule +Exchange Online,Get-MalwareFilterPolicy +Exchange Online,Get-HostedOutboundSpamFilterPolicy +Exchange Online,Get-AntiPhishPolicy +Exchange Online,Get-AntiPhishRule +Exchange Online,Get-DkimSigningConfig +Exchange Online,Get-TransportRule +Exchange Online,Get-ExternalInOutlook +Exchange Online,Get-AdminAuditLogConfig +Exchange Online,Get-AtpPolicyForO365 +Exchange Online,Get-ReportSubmissionPolicy diff --git a/CHANGELOG.md b/CHANGELOG.md index a3fac39..d19f350 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ The format is based on and uses the types of changes according to [Keep a Change ## [Unreleased] +### Added + +- Adds new CSV for PowerShell commands and updates PnP update check handling +- Introduces a new CSV file listing various PowerShell commands for different Microsoft services. +- Updates the `Invoke-M365SecurityAudit` script to temporarily disable PnP PowerShell update checks during execution and restores the original setting afterward. + +## [v0.1.28] - 2025-01-14 + ### Fixed - Get-SPOSite command to return all but voided output for no code runs (Ex: PowerAutomate) diff --git a/source/Public/Invoke-M365SecurityAudit.ps1 b/source/Public/Invoke-M365SecurityAudit.ps1 index 8ae5278..ab76641 100644 --- a/source/Public/Invoke-M365SecurityAudit.ps1 +++ b/source/Public/Invoke-M365SecurityAudit.ps1 @@ -175,6 +175,7 @@ function Invoke-M365SecurityAudit { } if ($AuthParams) { $script:PnpAuth = $true + $defaultPNPUpdateCheck = $env:PNPPOWERSHELL_UPDATECHECK $env:PNPPOWERSHELL_UPDATECHECK = 'Off' } # Check for 4.0.0 specific tests when in 3.0.0 mode @@ -333,5 +334,6 @@ function Invoke-M365SecurityAudit { } End { # Placeholder + $env:PNPPOWERSHELL_UPDATECHECK = $defaultPNPUpdateCheck } } \ No newline at end of file