Code backup
This commit is contained in:
2026-05-10 16:59:01 +02:00
commit 368d6fafea
796 changed files with 315310 additions and 0 deletions
@@ -0,0 +1,13 @@
Invoke-Command -ComputerName PC179 -ScriptBlock {
Get-ciminstance -class SoftwareLicensingProduct |
where {$_.name -match Office 16, Office16O365HomePremR_Subscription5 -AND $_.licensefamily} |
format-list -property Name, Description, `
@{Label=Grace period (days); Expression={ $_.graceperiodremaining / 1440}}, `
@{Label= License Status; Expression={switch (foreach {$_.LicenseStatus}) `
{ 0 {Unlicensed} `
1 {Licensed} `
2 {Out-Of-Box Grace Period} `
3 {Out-Of-Tolerance Grace Period} `
4 {Non-Genuine Grace Period} `
} } }
}