diff options
| author | WindowsAddict | 2025-05-06 12:39:33 +0000 |
|---|---|---|
| committer | WindowsAddict | 2025-05-06 12:39:33 +0000 |
| commit | 2b40259b335d6ac42f012fc368370c5e2aa032d8 (patch) | |
| tree | ae6b2447de1f9f166a9c5612a733d20bb22efefd /MAS/All-In-One-Version-KL | |
| parent | a514a99d0e0e3e8337bae572fafb32d8ebddf37c (diff) | |
| download | Microsoft-Activation-Scripts-2b40259b335d6ac42f012fc368370c5e2aa032d8.zip | |
Add fixes for CAS
Diffstat (limited to 'MAS/All-In-One-Version-KL')
| -rw-r--r-- | MAS/All-In-One-Version-KL/MAS_AIO.cmd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MAS/All-In-One-Version-KL/MAS_AIO.cmd b/MAS/All-In-One-Version-KL/MAS_AIO.cmd index 26b88fb..60d09c8 100644 --- a/MAS/All-In-One-Version-KL/MAS_AIO.cmd +++ b/MAS/All-In-One-Version-KL/MAS_AIO.cmd @@ -14989,8 +14989,8 @@ function PrintLicensesInformation function vNextDiagRun
{
- $fNUL = ([IO.Directory]::Exists("${env:LOCALAPPDATA}\Microsoft\Office\Licenses")) -and ([IO.Directory]::GetFiles("${env:LOCALAPPDATA}\Microsoft\Office\Licenses", "*", 1).Length -GE 0)
- $fDev = ([IO.Directory]::Exists("${env:PROGRAMDATA}\Microsoft\Office\Licenses")) -and ([IO.Directory]::GetFiles("${env:PROGRAMDATA}\Microsoft\Office\Licenses", "*", 1).Length -GE 0)
+ $fNUL = ([IO.Directory]::Exists("${env:LOCALAPPDATA}\Microsoft\Office\Licenses")) -and ([IO.Directory]::GetFiles("${env:LOCALAPPDATA}\Microsoft\Office\Licenses", "*", 1).Length -GT 0)
+ $fDev = ([IO.Directory]::Exists("${env:PROGRAMDATA}\Microsoft\Office\Licenses")) -and ([IO.Directory]::GetFiles("${env:PROGRAMDATA}\Microsoft\Office\Licenses", "*", 1).Length -GT 0)
$rPID = $null -NE (GP "HKCU:\SOFTWARE\Microsoft\Office\16.0\Common\Licensing\LicensingNext" -EA 0 | select -Expand 'property' -EA 0 | where -Filter {$_.ToLower() -like "*retail" -or $_.ToLower() -like "*volume"})
$rSCA = $null -NE (GP "HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration" -EA 0 | select -Expand "SharedComputerLicensing" -EA 0)
$rSCL = $null -NE (GP "HKLM:\SOFTWARE\Microsoft\Office\16.0\Common\Licensing" -EA 0 | select -Expand "SharedComputerLicensing" -EA 0)
@@ -15257,7 +15257,7 @@ function clcGetExpireSys return $null
}
- $rData = [DateTime]::FromFileTimeUTC($kuser).ToString('yyyy/MM/dd:HH:mm:ss')
+ $rData = [DateTime]::FromFileTimeUtc($kuser).ToString('yyyy/MM/dd:HH:mm:ss')
return $rData
}
|
