13 lines
260 B
PowerShell
13 lines
260 B
PowerShell
|
$WinVerAct = (cscript /Nologo "C:\Windows\System32\slmgr.vbs" /xpr) -join ''
|
||
|
|
||
|
if ($WinVerAct -like '*Activated*') {
|
||
|
Write-Output "All looks fine $WinVerAct"
|
||
|
exit 0
|
||
|
}
|
||
|
|
||
|
else {
|
||
|
Write-Output "Theres an issue $WinVerAct"
|
||
|
exit 1
|
||
|
}
|
||
|
|
||
|
Exit $LASTEXITCODE
|