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 (
55
+
set"chkID=%%#"
56
+
call :casWdet"%wspp%""%wsps%""%spp_get%"
57
+
call :casWout
58
+
echo%line3%
59
+
echo:
60
+
)
61
+
62
+
:casWcon
63
+
setwinID=0
64
+
setverbose=1
65
+
ifnotdefined c0ff1ce15 (
66
+
ifdefined osppsvc goto :casWospp
67
+
goto :casWend
68
+
)
69
+
echo%line2%
70
+
echo *** Office Status ***
71
+
echo%line2%
72
+
for /f "tokens=2 delims=="%%# in ('"wmic path %wspp% where (ApplicationID='%o15App%' and PartialProductKey is not null) get ID /value"') do (
73
+
set"chkID=%%#"
74
+
call :casWdet"%wspp%""%wsps%""%spp_get%"
75
+
call :casWout
76
+
echo%line3%
77
+
echo:
78
+
)
79
+
setverbose=0
80
+
ifdefined osppsvc goto :casWospp
81
+
goto :casWend
82
+
83
+
:casWospp
84
+
if%verbose%==1 (
85
+
echo%line2%
86
+
echo *** Office Status ***
87
+
echo%line2%
88
+
)
89
+
ifdefined ospp15 for /f "tokens=2 delims=="%%# in ('"wmic path %ospp% where (ApplicationID='%o15App%' and PartialProductKey is not null) get ID /value"') do (
90
+
set"chkID=%%#"
91
+
call :casWdet"%ospp%""%osps%""%ospp_get%"
92
+
call :casWout
93
+
echo%line3%
94
+
echo:
95
+
)
96
+
ifdefined ospp14 for /f "tokens=2 delims=="%%# in ('"wmic path %ospp% where (ApplicationID='%o14App%' and PartialProductKey is not null) get ID /value"') do (
97
+
set"chkID=%%#"
98
+
call :casWdet"%ospp%""%osps%""%ospp_get%"
99
+
call :casWout
100
+
echo%line3%
101
+
echo:
102
+
)
103
+
goto :casWend
104
+
105
+
:casWpkey
106
+
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)
107
+
exit /b
108
+
109
+
:casWdet
110
+
for%%# in (%~3) doset"%%#="
111
+
if%~1equ%ospp%for%%# in (DiscoveredKeyManagementServiceMachineIpAddress, KeyManagementServiceLookupDomain, ProductKeyChannel, VLActivationTypeEnabled) doset"%%#="
112
+
set"cKmsClient="
113
+
set"cTblClient="
114
+
set"cAvmClient="
115
+
set"ExpireMsg="
116
+
set"_xpr="
117
+
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