Benchmark runs, but fails at end when converting output to CISAuditResult object #157
Unanswered
ashmatash76
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Getting an error at the end of the benchmark test:
PS C:\Windows\system32> $auditResults = Invoke-M365SecurityAudit -TenantAdminUrl "https://-admin.sharepoint.com" Performing the operation "Assert-ModuleAvailability" on target "Modules: ExchangeOnlineManagement, Microsoft.Graph
(SubModules: DeviceManagement, Users, Identity.DirectoryManagement, Identity.SignIns),
Microsoft.Online.SharePoint.PowerShell, MicrosoftTeams".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
VERBOSE: Connecting to Microsoft Graph...
VERBOSE: Successfully connected to Microsoft Graph.
VERBOSE: Connecting to Exchange Online...
VERBOSE: Successfully connected to Exchange Online.
VERBOSE: Connecting to SharePoint Online...
VERBOSE: Successfully connected to SharePoint Online.
VERBOSE: Connecting to Microsoft Teams...
VERBOSE: Successfully connected to Microsoft Teams.
VERBOSE: Connected to the following tenants:
VERBOSE: Service: Microsoft Graph | Tenant: ******
VERBOSE: Service: Exchange Online | Tenant: *************
VERBOSE: Service: SharePoint Online | Tenant: https://.sharepoint.com
VERBOSE: Service: Microsoft Teams | Tenant: ***************
Do you want to proceed with these connections? (Y/N): y
VERBOSE: An error occurred during the test 5.1.8.1:
Cannot process argument transformation on parameter 'Result'. Cannot convert value
"System.Management.Automation.PSCustomObject" to type "System.Boolean". Boolean parameters accept only Boolean values
and numbers, such as $True, $False, 1 or 0.
Looking at the test results in question:
PS C:\Windows\system32> $auditResults | where { $_.rec -eq '5.1.8.1' }
Status : Fail
ELevel : E3
ProfileLevel : L1
Automated : True
Connection : Microsoft Graph
Rec : 5.1.8.1
RecDescription : Ensure password hash sync is enabled for hybrid deployments
CISControlVer : v8
CISControl : 6.7
CISDescription : Centralize Access Control
IG1 : False
IG2 : True
IG3 : True
Result : False
Details : An error occurred while processing the test.
FailureReason : Initialization error: Failed to process the test.
I can see the test failed to run, should that interfere with the transformation of the resulting system.object[] to the expected "CISAuditResult" object? The export command requires a CISAuditResult object and fails otherwise.
Beta Was this translation helpful? Give feedback.
All reactions