Forum Discussion
Get User Submissions via Powershell to Mark them
[18:09:54][O365]# Get-Command Get-MgSecurityThreatSubmissionEmailThreat
CommandType Name Version Source
----------- ---- ------- ------
Function Get-MgSecurityThreatSubmissionEmailThreat 1.11.1 Microsoft.Graph.Security
Thank you for the reply. I dont get any mgsecurity Commands like "Get-MGSecurity".
Which cmdlet do I need to load to unlock all "MGsecurity" commands ?
Connect-MgGraph
Welcome To Microsoft Graph!
Get-Command : The term 'Get-MgSecurityThreatSubmissionEmailThreat' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-Command Get-MgSecurityThreatSubmissionEmailThreat
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-MgSecurityT...sionEmailThreat:String) [Get-Command], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Connect-MgGraph.Security:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
this is the only command I have starting with Get-MGSe(curity)
- VasilMichevSep 08, 2022MVPYou have to switch to the beta profile first. Do you have the Microsoft.Graph.Security module at all?
For the record, it's working on PowerShell 7, haven't tried the old ISE.