All of the scripts were written with PowerShell 7.4. I haven't tested with other versions, so your mileage may vary.
Documentation for installing PowerShell can be found:
While not all scripts require all of the modules in the Microsoft.Graph
meta-module, it's easier to install them all.
⚠️ Note:The required modules are listed on each script's documentation page.
To install the Microsoft.Graph
modules:
PowerShellGet
(Available by default)
Install-Module -Name "Microsoft.Graph" -Scope "CurrentUser"
Microsoft.PowerShell.PSResourceGet
Install-PSResource -Name "Microsoft.Graph" -Scope "CurrentUser"
Scripts related to Entra ID roles.
Name | Description |
---|---|
Remove-UserFromEntraIdRole.ps1 |
Remove a user from an Entra ID role. |
Scripts related to Privileged Access Groups.
Name | Description |
---|---|
Add-UserToPrivilegedAccessGroup.ps1 |
Add a user to a Privileged Access Group. |
Remove-UserFromPrivilegedAccessGroup.ps1 |
Remove a user from a Privileged Access Group. |