Skip to content

Commit 979dfb7

Browse files
author
WindowsAddict
committed
Update as per abbodi1406's CAS
No KMS Client info when ADBA is shown
1 parent 82f7cfe commit 979dfb7

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

MAS/All-In-One-Version-KL/MAS_AIO.cmd

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14965,6 +14965,7 @@ function DetectSubscription {
1496514965
function DetectAdbaClient
1496614966
{
1496714967
$propADBA | foreach { set $_ (SlGetInfoSku $licID $_) }
14968+
DetectActType
1496814969
CONOUT "`nAD Activation client information:"
1496914970
CONOUT " Object Name: $ADActivationObjectName"
1497014971
CONOUT " Domain Name: $ADActivationObjectDN"
@@ -15055,17 +15056,18 @@ function DetectKmsHost
1505515056
if ($null -NE $KeyManagementServiceNotificationRequests) {CONOUT " Notification: $KeyManagementServiceNotificationRequests"}
1505615057
}
1505715058

15058-
function DetectKmsClient
15059+
function DetectActType
1505915060
{
15060-
if ($win8)
15061-
{
15062-
$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp + '\' + $licID) "VLActivationType"
15063-
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp) "VLActivationType"}
15064-
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath) "VLActivationType"}
15065-
if ($null -EQ $VLType -Or $VLType -GT 3) {$VLType = 0}
15066-
}
15061+
$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp + '\' + $licID) "VLActivationType"
15062+
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp) "VLActivationType"}
15063+
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath) "VLActivationType"}
15064+
if ($null -EQ $VLType -Or $VLType -GT 3) {$VLType = 0}
1506715065
if ($null -NE $VLType) {CONOUT "Configured Activation Type: $($VLActTypes[$VLType])"}
15066+
}
1506815067

15068+
function DetectKmsClient
15069+
{
15070+
if ($win8) {DetectActType}
1506915071
CONOUT "`r"
1507015072
if ($LicenseStatus -NE 1) {
1507115073
CONOUT "Please activate the product in order to update KMS client information values."
@@ -15313,6 +15315,7 @@ function GetResult($strSLP, $strApp, $entry)
1531315315

1531415316
if ($win8 -And $VLActivationType -EQ 1) {
1531515317
DetectAdbaClient
15318+
$cKmsClient = $null
1531615319
}
1531715320

1531815321
if ($winID -And $null -NE $cAvmClient) {

MAS/Separate-Files-Version/Check_Activation_Status.cmd

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ function DetectSubscription {
518518
function DetectAdbaClient
519519
{
520520
$propADBA | foreach { set $_ (SlGetInfoSku $licID $_) }
521+
DetectActType
521522
CONOUT "`nAD Activation client information:"
522523
CONOUT " Object Name: $ADActivationObjectName"
523524
CONOUT " Domain Name: $ADActivationObjectDN"
@@ -608,17 +609,18 @@ function DetectKmsHost
608609
if ($null -NE $KeyManagementServiceNotificationRequests) {CONOUT " Notification: $KeyManagementServiceNotificationRequests"}
609610
}
610611

611-
function DetectKmsClient
612+
function DetectActType
612613
{
613-
if ($win8)
614-
{
615-
$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp + '\' + $licID) "VLActivationType"
616-
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp) "VLActivationType"}
617-
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath) "VLActivationType"}
618-
if ($null -EQ $VLType -Or $VLType -GT 3) {$VLType = 0}
619-
}
614+
$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp + '\' + $licID) "VLActivationType"
615+
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp) "VLActivationType"}
616+
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath) "VLActivationType"}
617+
if ($null -EQ $VLType -Or $VLType -GT 3) {$VLType = 0}
620618
if ($null -NE $VLType) {CONOUT "Configured Activation Type: $($VLActTypes[$VLType])"}
619+
}
621620

621+
function DetectKmsClient
622+
{
623+
if ($win8) {DetectActType}
622624
CONOUT "`r"
623625
if ($LicenseStatus -NE 1) {
624626
CONOUT "Please activate the product in order to update KMS client information values."
@@ -866,6 +868,7 @@ function GetResult($strSLP, $strApp, $entry)
866868

867869
if ($win8 -And $VLActivationType -EQ 1) {
868870
DetectAdbaClient
871+
$cKmsClient = $null
869872
}
870873

871874
if ($winID -And $null -NE $cAvmClient) {

0 commit comments

Comments
 (0)