Skip to content

[Bug]: VerbosePreference property not found on this object #145

@silverhack

Description

@silverhack

What happened?

Originally posted by @roohfelix

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

throw ("{0}: {1}" -f "Unable to create var object",$_.Exception.Message)
Has anyone run into this issue?

Thanks in advance to anyone who can share insights or confirm the best approach.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions