Skip to content

A simple PowerShell script made during my internship at Cretex inc. that checks if users have F3 or E3 licenses

License

Notifications You must be signed in to change notification settings

lawofthedmz/License-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Azure AD License Checker

This PowerShell script checks if users in Azure Active Directory (Azure AD) have specific licenses.

How it works

The script reads a list of email addresses from a text file named emails.txt. Each email address should be on a separate line.

For each email address, the script retrieves the user's licenses from Azure AD. It then checks each license to see if its SkuPartNumber or any of its ServicePlanNames contain "SPE_F1" or "EMS".

If a user does not have either the "SPE_F1" or "EMS" licenses, the script prints the user's email address.

How to run the script

  1. Open PowerShell.
  2. Navigate to the directory where the script is located using the cd command.
  3. Run the script with the .\script.ps1 command.

Please note that you need to have the AzureAD PowerShell module installed to run this script. You can install it with the Install-Module -Name AzureAD command.

Requirements

  • PowerShell
  • AzureAD PowerShell module
  • A text file named emails.txt with one email address per line

About

A simple PowerShell script made during my internship at Cretex inc. that checks if users have F3 or E3 licenses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published