add: Adds new CSV for PowerShell commands and updates PnP update check handling

This commit is contained in:
DrIOS
2025-03-23 15:39:50 -05:00
parent 3e4214c070
commit e16c147e7d
3 changed files with 47 additions and 0 deletions

37
Book1.csv Normal file
View File

@@ -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
1 Product Command
2 SharePoint Get-SPOTenant
3 SharePoint Get-SPOSite
4 SharePoint Get-SPOTenantSyncClientRestriction
5 SharePoint Get-PnPTenant
6 SharePoint Get-PnPTenantSite
7 SharePoint Get-PnPTenantSyncClientRestriction
8 Microsoft Graph Get-MgDirectoryRole
9 Microsoft Graph Get-MgDirectoryRoleMember
10 Microsoft Graph Get-MgUser
11 Microsoft Graph Get-MgGroup
12 Microsoft Graph Get-MgDomain
13 Microsoft Graph Get-MgOrganization
14 Microsoft Graph Get-MgSubscribedSku
15 Microsoft Graph Get-MgUserLicenseDetail
16 Teams Get-CsTeamsClientConfiguration
17 Teams Get-CsTeamsMeetingPolicy
18 Teams Get-CsTenantFederationConfiguration
19 Teams Get-CsTeamsMessagingPolicy
20 Exchange Online Get-EXOMailbox
21 Exchange Online Get-OrganizationConfig
22 Exchange Online Get-SharingPolicy
23 Exchange Online Get-RoleAssignmentPolicy
24 Exchange Online Get-OwaMailboxPolicy
25 Exchange Online Get-SafeLinksPolicy
26 Exchange Online Get-SafeAttachmentPolicy
27 Exchange Online Get-SafeAttachmentRule
28 Exchange Online Get-MalwareFilterPolicy
29 Exchange Online Get-HostedOutboundSpamFilterPolicy
30 Exchange Online Get-AntiPhishPolicy
31 Exchange Online Get-AntiPhishRule
32 Exchange Online Get-DkimSigningConfig
33 Exchange Online Get-TransportRule
34 Exchange Online Get-ExternalInOutlook
35 Exchange Online Get-AdminAuditLogConfig
36 Exchange Online Get-AtpPolicyForO365
37 Exchange Online Get-ReportSubmissionPolicy

View File

@@ -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)

View File

@@ -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
}
}