Replies: 2 comments · 2 replies
|
Hey @roohfelix I can confirm that it's a bug and only appears when the -Verbose option is not set. I'll add this as a new issue. In the meantime you can use the following: $options = @{
Instance = 'Microsoft365';
Collect = @('AdminPortal','ExchangeOnline','MicrosoftTeams','SharePointOnline');
PromptBehavior = 'SelectAccount';
IncludeEntraID = $true;
ExportTo = @('CSV', 'HTML');
WriteLog = $true;
Verbose = $true;
Debug = $true;
}
Invoke-Monkey365 @optionsCould you please let me know if the above works for you? Thanks for catching this! It's really appreciated. Cheers, |
1 reply
|
@silverhack Thanks for your response. I managed to resolve this with a workaround by editing the Initialize-MonkeyScan.ps1 script. I replaced the following block: With this version: This avoids errors when the VerbosePreference or DebugPreference properties are missing. Thanks again! |
1 reply
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.
Hi everyone,
I'm currently using Monkey365 (v0.95.1) to run a Microsoft 365 security assessment. I'm executing a collection that includes AdminPortal, ExchangeOnline, MicrosoftTeams, and SharePointOnline (Purview was excluded due to connection issues).
However, when I run the following:
$options = @{
Instance = 'Microsoft365';
Collect = @('AdminPortal','ExchangeOnline','MicrosoftTeams','SharePointOnline');
PromptBehavior = 'SelectAccount';
IncludeEntraID = $true;
ExportTo = @('CSV', 'HTML');
WriteLog = $true;
}
Invoke-Monkey365 @options
I get this error:
Write-Error : [Invoke-M365Scanner] - Unable to create var object: The property 'VerbosePreference' was not found on this object. Verify that the property exists.
At C:\Monkey365\core\tasks\Initialize-MonkeyScan.ps1:99 char:13
Has anyone run into this issue?
Thanks in advance to anyone who can share insights or confirm the best approach.
All reactions