============================================================
 Microsoft 365 License Management Toolkit — 10 script PowerShell
 SynSphere Italia · https://synsphere.it
============================================================

COSA C'E' DENTRO
  10 script PowerShell (codice originale SynSphere) per gestire e ottimizzare
  le licenze Microsoft 365. Pensati per amministratori IT e MSP.

  01-Get-M365LicenseReport.ps1          Report utenti licenziati + SKU + stato
  02-Get-M365LicenseExpiryReport.ps1    SKU sottoscritti: unità, consumo, warning
  03-Manage-M365Licenses.ps1            Report/assegna/rimuovi licenze (anche bulk CSV)
  04-Get-M365LicensedSharedMailboxes.ps1 Shared mailbox CON licenza (spesa sprecata)
  05-Get-M365LicensedGroups.ps1         Gruppi con group-based licensing
  06-Get-M365LicenseAssignmentPath.ps1  Licenza diretta vs ereditata da gruppo
  07-Get-M365GroupBasedLicenseReport.ps1 Utenti con licenze da gruppo + errori
  08-Remove-M365OverlappedLicenses.ps1  Trova/rimuove licenze dirette sovrapposte
  09-Get-M365UnusedLicenses.ps1         Utenti licenziati inattivi (licenze recuperabili)
  10-Get-M365LicenseCostReport.ps1      Spesa licenze per utente (listino configurabile)

PREREQUISITI
  - PowerShell 5.1+ o PowerShell 7
  - Microsoft Graph PowerShell SDK:
        Install-Module Microsoft.Graph -Scope CurrentUser
  - Solo per lo script 04 (shared mailbox): Exchange Online Management
        Install-Module ExchangeOnlineManagement -Scope CurrentUser
  - Account amministratore con i permessi indicati nell'header di ogni script
    (autenticazione moderna / MFA: si apre il browser, niente password negli script).

USO
  Ogni script è autonomo, parametrico e commentato. Esempio:
        .\01-Get-M365LicenseReport.ps1
        .\09-Get-M365UnusedLicenses.ps1 -InactiveDays 60
  Gli script di SCRITTURA (03 Assign/Remove, 08 RemoveDirect) supportano -WhatIf
  per simulare senza applicare. USALO sempre la prima volta.

  Guida completa: https://synsphere.it/notizie/script-powershell-licenze-microsoft-365-toolkit-pmi

LICENZA
  Uso interno aziendale gratuito (no redistribuzione commerciale).
  Fornito "as is", senza garanzie. Testare in un ambiente non critico prima dell'uso.

SUPPORTO / OTTIMIZZAZIONE LICENZE
  Vuoi un assessment delle licenze e dei costi M365? https://synsphere.it/contattaci
============================================================
