How to run a windows command script as an Administrator for the installation of Microsoft Defender for Endpoint

Athanasios Collins 0 Reputation points
2024-01-16T01:55:30.29+00:00

|User's image

65 Insufficient privileges Run the script again with administrator privileges.
I am trying to install microsoft defender for endpoint. The onboarding script is a windows command script. How do I run it as an administrator?
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,484 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Morten Sonne 595 Reputation points MVP
    2024-01-16T07:20:27.28+00:00

    Hi Athanasios, On the batch file (.cmd) you have downloaded to install Microsoft Defender for Endpoint on your device (as I see on the screenshot), right click on it and say "Run as Administrator" like this:
    User's image

    Then you should be good to go :)

    0 comments No comments

  2. Givary-MSFT 35,216 Reputation points Microsoft Employee
    2024-01-17T09:04:15.87+00:00

    @Athanasios Collins Just wanted to check does the above mentioned suggestion helped to resolve your issue or not.

    Same details have been documented here - https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/configure-endpoints-script?view=o365-worldwide

    This script has been optimized for use on up to ten devices. Local scripting is a special onboarding method for evaluating Microsoft Defender for Endpoint.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.