Set EntraIDUserLocationFromIP
Skript Beschreibung
**Zusammenfassung**: Suggests Usage Location updates for users based on their recent successful sign-in IP.
Users in Entra ID need a UsageLocation to be assigned licenses.
This script looks at the last successful interactive sign-in, determines the country from
the IP address (via Graph Sign-in logs), and suggests setting the UsageLocation.
Use -Confirm to apply.
Skript Infos
Autor
Mattia Cirillo
Version
1.0
Sprache
PowerShell
118_Set-EntraIDUserLocationFromIP.ps1