mirror of
https://github.com/admindroid-community/powershell-scripts.git
synced 2025-12-17 08:25:20 +00:00
Microsoft 365 License Management and Reporting Tool
Update for friendly names file handling
This commit is contained in:
parent
9ca1f17a9b
commit
d2487cfdc4
@ -23,6 +23,7 @@ Change Log
|
|||||||
V2.0 (Mar 10, 2025) - Upgraded from MS Graph beta to production version
|
V2.0 (Mar 10, 2025) - Upgraded from MS Graph beta to production version
|
||||||
V2.1 (Mar 21, 2025) - Feature break due to module upgrade fixed.
|
V2.1 (Mar 21, 2025) - Feature break due to module upgrade fixed.
|
||||||
V2.2 (Mar 26, 2025) - Used 'Property' param to retrive user properties.
|
V2.2 (Mar 26, 2025) - Used 'Property' param to retrive user properties.
|
||||||
|
V2.3 (Apr 05, 2025) - Updated license friednly name with latest changes and converted it as CSV file
|
||||||
|
|
||||||
|
|
||||||
For detailed Script execution: https://o365reports.com/2022/09/08/manage-365-licenses-using-ms-graph-powershell
|
For detailed Script execution: https://o365reports.com/2022/09/08/manage-365-licenses-using-ms-graph-powershell
|
||||||
@ -177,7 +178,10 @@ Function main() {
|
|||||||
Connect_MgGraph
|
Connect_MgGraph
|
||||||
$Result = ""
|
$Result = ""
|
||||||
$Results = @()
|
$Results = @()
|
||||||
$FriendlyNameHash = Get-Content -Raw -Path .\LicenseFriendlyName.txt -ErrorAction Stop | ConvertFrom-StringData
|
$FriendlyNameHash = @{}
|
||||||
|
Import-Csv -Path .\LicenseFriendlyName.csv -ErrorAction Stop | ForEach-Object {
|
||||||
|
$FriendlyNameHash[$_.string_id] = $_.Product_Display_Name
|
||||||
|
}
|
||||||
$SkuPartNumberHash = @{}
|
$SkuPartNumberHash = @{}
|
||||||
$SkuIdHash = @{}
|
$SkuIdHash = @{}
|
||||||
Get-MgSubscribedSku -All | Select-Object SkuPartNumber, SkuId | ForEach-Object {
|
Get-MgSubscribedSku -All | Select-Object SkuPartNumber, SkuId | ForEach-Object {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user