docs: Update Help

This commit is contained in:
DrIOS
2024-08-04 16:03:14 -05:00
parent 07592569b4
commit 87c635210d
2 changed files with 12 additions and 10 deletions

View File

@@ -77,11 +77,12 @@ Sync-CISExcelAndCsvData -ExcelPath "path\to\excel.xlsx" -CsvPath "path\to\data.c
Grant-M365SecurityAuditConsent -UserPrincipalNameForConsent 'user@example.com' Grant-M365SecurityAuditConsent -UserPrincipalNameForConsent 'user@example.com'
# Example 8: (PowerShell 7.x Only) Creating a new authentication object for the security audit for app-based authentication. # Example 8: (PowerShell 7.x Only) Creating a new authentication object for the security audit for app-based authentication.
$authParams = New-M365SecurityAuditAuthObject -ClientCertThumbPrint "ABCDEF1234567890ABCDEF1234567890ABCDEF12" ` $authParams = New-M365SecurityAuditAuthObject `
-ClientId "12345678-1234-1234-1234-123456789012" ` -ClientCertThumbPrint "ABCDEF1234567890ABCDEF1234567890ABCDEF12" `
-TenantId "12345678-1234-1234-1234-123456789012" ` -ClientId "12345678-1234-1234-1234-123456789012" `
-OnMicrosoftUrl "yourcompany.onmicrosoft.com" ` -TenantId "12345678-1234-1234-1234-123456789012" `
-SpAdminUrl "https://yourcompany-admin.sharepoint.com" -OnMicrosoftUrl "yourcompany.onmicrosoft.com" `
-SpAdminUrl "https://yourcompany-admin.sharepoint.com"
Invoke-M365SecurityAudit -AuthParams $authParams -TenantAdminUrl "https://yourcompany-admin.sharepoint.com" Invoke-M365SecurityAudit -AuthParams $authParams -TenantAdminUrl "https://yourcompany-admin.sharepoint.com"
``` ```

View File

@@ -77,11 +77,12 @@ Sync-CISExcelAndCsvData -ExcelPath "path\to\excel.xlsx" -CsvPath "path\to\data.c
Grant-M365SecurityAuditConsent -UserPrincipalNameForConsent 'user@example.com' Grant-M365SecurityAuditConsent -UserPrincipalNameForConsent 'user@example.com'
# Example 8: (PowerShell 7.x Only) Creating a new authentication object for the security audit for app-based authentication. # Example 8: (PowerShell 7.x Only) Creating a new authentication object for the security audit for app-based authentication.
$authParams = New-M365SecurityAuditAuthObject -ClientCertThumbPrint "ABCDEF1234567890ABCDEF1234567890ABCDEF12" ` $authParams = New-M365SecurityAuditAuthObject `
-ClientId "12345678-1234-1234-1234-123456789012" ` -ClientCertThumbPrint "ABCDEF1234567890ABCDEF1234567890ABCDEF12" `
-TenantId "12345678-1234-1234-1234-123456789012" ` -ClientId "12345678-1234-1234-1234-123456789012" `
-OnMicrosoftUrl "yourcompany.onmicrosoft.com" ` -TenantId "12345678-1234-1234-1234-123456789012" `
-SpAdminUrl "https://yourcompany-admin.sharepoint.com" -OnMicrosoftUrl "yourcompany.onmicrosoft.com" `
-SpAdminUrl "https://yourcompany-admin.sharepoint.com"
Invoke-M365SecurityAudit -AuthParams $authParams -TenantAdminUrl "https://yourcompany-admin.sharepoint.com" Invoke-M365SecurityAudit -AuthParams $authParams -TenantAdminUrl "https://yourcompany-admin.sharepoint.com"
``` ```