Hello Everyone<\/p>\n
Hope you all are safe!!<\/p>\n
I need help on Powershell<\/p>\n
I am trying to get output for all licenses usage with below PS command<\/p>\n
$customformat = @{expr={$_.AccountSkuID};label=\"AccountSkuId\"},\n\n@{expr={$_.ActiveUnits};label=\"Total\"},\n\n@{expr={$_.ConsumedUnits};label=\"Assigned\"},\n\n@{expr={$_.activeunits-$_.consumedunits};label=\"Unassigned\"},\n\n@{expr={$_.WarningUnits};label=\"Warning\"},\n\n@{expr={($_.WarningUnits)-($_.ConsumedUnits)};label=\"Remaining\"}\n\nGet-MsolAccountSku | Sort-Object activeunits -desc | Select-Object $customformat\n\nI do get the output but with the \"'MichealinnGroup:DESKLESSPACK_YAMMER'\" format\n\nThen I tried to use array:\n\n $accountskuid = @{\n 'MichealinnGrupp:STANDARDPACK' = 'Office 365 Plan E1'\n 'MichealinnGrupp:STANDARDWOFFPACK' = 'Office 365 Plan E2'\n 'MichealinnGruppENTERPRISEPACK' = 'Office 365 Plan E3'\n 'MichealinnGrupp:ENTERPRISEWITHSCAL' = 'Office 365 Plan E4'\n 'MichealinnGroppDESKLESSPACK' = 'Office 365 Plan F1'\n 'MichealinnGrupp:DESKLESSPACK_YAMMER' = 'Office 365 Plan F1 with Yammer'\n }\n<\/code><\/pre>\nBut I am unable to get the appropriate results.<\/p>\n
Can someone please help me :-(???<\/p>\n