configure settings for microsoft defender for Endpoint

Saikumar 20 Reputation points
2023-05-05T08:02:36.69+00:00

Hi Team,

i'm looking to Automate some of the items related to Microsoft 365 defender portal i tried searching for possible ways to login to defender portal using powershell commands but not able to do it.

do we have any Mggraph related commands or any other way to login and configure below steps using powershell is possible.please help.

I have Global Administrator access to portal
do i need to still follow traditional approach like creating App Registration and updating polices and getting access token for this.

or is there any other way to do so

items are:-
-Accessing Microsoft defender for Endpoint

-configure MDE security configuration management

-Enable web content filtering

-configure Directory service Accounts

-Configure Manage action accounts

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,222 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,264 questions
Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,250 questions
Microsoft Defender for Identity
Microsoft Defender for Identity
A Microsoft service that helps protect enterprise hybrid environments from multiple types of advanced, targeted cyberattacks and insider threats.
175 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andrew Blumhardt 9,831 Reputation points Microsoft Employee
    2023-05-05T12:12:44.44+00:00

    Have you looked at the MDE API? That is the only option that might be close:

    https://video2.skills-academy.com/en-us/microsoft-365/security/defender-endpoint/exposed-apis-list


  2. Zehui Yao_MSFT 5,846 Reputation points
    2023-05-08T09:17:50.3733333+00:00

    Hi Saikumar ,The Microsoft Graph PowerShell SDK provides Security cmdlets, which can interact with Microsoft Defender. Hope this meets your needs. Best Wishes.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments