{Do you know} Remove bulk system administrator from Power Platform using Powershell Script.


Hello Everyone,

Today i am going to show how to remove bulk system administrators or any specific role using PowerShell Script.

Let’s get’s started.
New Microsoft Release feature details: Enables you to have better control over security in Dataverse environments. You can easily produce a list of users assigned to the system administrator role and remove assignments as needed.
Suppose your organisation have a lot of system administrators and global admins or power platform admins can run this Powershell scripts to remove bulk system administrators.
How do you do that ?
You will following list to run the script.
1. Install Visual Studio 2017 or higher
2. Install the .NET Framework 4.6.2 Developer Pack
3. Open the solution file (Microsoft.PowerPlatform.Administration.Powershell.sln) in administrator mode and build the solution.
4. Open PowerShell in administrator mode.
5. Set Execution Policy to Unrestricted.
6. Import the Microsoft.PowerPlatform.Administration.PowerShell module, as shown below.

<

div>

<

ol dir=”auto” style=”background-color: white;color: #1f2328;font-size: 16px;margin-bottom: 16px;margin-top: 0px;padding-left: 2em”>

  • <

    div class=”highlight highlight-source-powershell notranslate position-relative overflow-auto” dir=”auto” style=”background-color: var(–color-canvas-subtle);justify-content: space-between;margin-bottom: 16px;overflow: auto !important;position: relative !important”>

    <

    pre style=”background-color: var(–bgColor-muted, var(–color-canvas-subtle));border-radius: 6px;color: var(–fgColor-default, var(–color-fg-default));, monospace;font-size: 13.6px;line-height: 1.45;margin-bottom: 0px;margin-top: 0px;overflow: auto;padding:…


  • Source link

    Author: Malla Reddy Gurram

    Share This Post On
    Share via
    Copy link
    Powered by Social Snap