You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for /f "tokens=2 delims=="%%# in ('"wmic path %wspp% where (ApplicationID='%winApp%' and PartialProductKey is not null) get ID /value"') do (
42
+
set"chkID=%%#"
43
+
call :casWdet"%wspp%""%wsps%""%spp_get%"
44
+
call :casWout
45
+
echo%line3%
46
+
echo:
47
+
)
48
+
49
+
:casWcon
50
+
setwinID=0
51
+
setverbose=1
52
+
ifnotdefined c0ff1ce15 (
53
+
ifdefined osppsvc goto :casWospp
54
+
goto :casWend
55
+
)
56
+
echo%line2%
57
+
echo *** Office Status ***
58
+
echo%line2%
59
+
for /f "tokens=2 delims=="%%# in ('"wmic path %wspp% where (ApplicationID='%o15App%' and PartialProductKey is not null) get ID /value"') do (
60
+
set"chkID=%%#"
61
+
call :casWdet"%wspp%""%wsps%""%spp_get%"
62
+
call :casWout
63
+
echo%line3%
64
+
echo:
65
+
)
66
+
setverbose=0
67
+
ifdefined osppsvc goto :casWospp
68
+
goto :casWend
69
+
70
+
:casWospp
71
+
if%verbose%==1 (
72
+
echo%line2%
73
+
echo *** Office Status ***
74
+
echo%line2%
75
+
)
76
+
ifdefined ospp15 for /f "tokens=2 delims=="%%# in ('"wmic path %ospp% where (ApplicationID='%o15App%' and PartialProductKey is not null) get ID /value"') do (
77
+
set"chkID=%%#"
78
+
call :casWdet"%ospp%""%osps%""%ospp_get%"
79
+
call :casWout
80
+
echo%line3%
81
+
echo:
82
+
)
83
+
ifdefined ospp14 for /f "tokens=2 delims=="%%# in ('"wmic path %ospp% where (ApplicationID='%o14App%' and PartialProductKey is not null) get ID /value"') do (
84
+
set"chkID=%%#"
85
+
call :casWdet"%ospp%""%osps%""%ospp_get%"
86
+
call :casWout
87
+
echo%line3%
88
+
echo:
89
+
)
90
+
goto :casWend
91
+
92
+
:casWpkey
93
+
wmicpath%1where (ApplicationID='%2' and PartialProductKey is not null) get ID /value 2>nul|findstr /i ID 1>nul&& (set %3=1&set %4=1)
94
+
exit /b
95
+
96
+
:casWdet
97
+
for%%# in (%~3) doset"%%#="
98
+
if%~1equ%ospp%for%%# in (DiscoveredKeyManagementServiceMachineIpAddress, KeyManagementServiceLookupDomain, ProductKeyChannel, VLActivationTypeEnabled) doset"%%#="
99
+
set"cKmsClient="
100
+
set"cTblClient="
101
+
set"cAvmClient="
102
+
set"ExpireMsg="
103
+
set"_xpr="
104
+
for /f "tokens=* delims="%%# in ('"wmic path %~1 where ID='%chkID%' get %~3 /value"^| findstr^=') doset"%%#"
ifnot%LicenseStatus%==0ifnot%EvaluationEndDate:~0,8%==16010101echo Evaluation End Date: %EvaluationEndDate:~0,4%-%EvaluationEndDate:~4,2%-%EvaluationEndDate:~6,2%%EvaluationEndDate:~8,2%:%EvaluationEndDate:~10,2% UTC
0 commit comments