Invoke-EntraE1LicenseCleanup
SYNOPSIS
Removes users from E1 license groups in Active Directory.
SYNTAX
DESCRIPTION
The `Invoke-EntraE1LicenseCleanup` function matches users with members of various E1 license groups in Active Directory and removes them if a match is found.
EXAMPLES
EXAMPLE 1
Matches the users in `$UserList` with members of E1 license groups and removes them if they are found in the groups.
PARAMETERS
-Users
An array of users to be checked and removed from E1 license groups. The users should be provided as objects with properties like `DistinguishedName`.
Type: Array
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.