mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2025-12-05 03:34:54 +01:00
Improve code quality and reliability
- Replace legacy ping delays with modern timeout command across all scripts - Enhance PowerShell job error handling for better reliability - Fix typos in error messages for professional appearance These changes improve script reliability while maintaining full backward compatibility.
This commit is contained in:
parent
b74d1155b9
commit
24e0209de9
11 changed files with 120 additions and 24 deletions
|
|
@ -115,7 +115,7 @@ echo:
|
|||
echo Check this webpage for help - %mas%fix_service
|
||||
echo:
|
||||
echo:
|
||||
ping 127.0.0.1 -n 20
|
||||
timeout /t 20 /nobreak >nul
|
||||
)
|
||||
cls
|
||||
|
||||
|
|
@ -130,7 +130,7 @@ echo:
|
|||
echo Check this webpage for help - %mas%troubleshoot
|
||||
echo:
|
||||
echo:
|
||||
ping 127.0.0.1 -n 20 >nul
|
||||
timeout /t 20 /nobreak >nul
|
||||
popd
|
||||
exit /b
|
||||
)
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ echo:
|
|||
echo Check this webpage for help - %mas%fix_service
|
||||
echo:
|
||||
echo:
|
||||
ping 127.0.0.1 -n 20
|
||||
timeout /t 20 /nobreak >nul
|
||||
)
|
||||
cls
|
||||
|
||||
|
|
@ -130,7 +130,7 @@ echo:
|
|||
echo Check this webpage for help - %mas%troubleshoot
|
||||
echo:
|
||||
echo:
|
||||
ping 127.0.0.1 -n 20 >nul
|
||||
timeout /t 20 /nobreak >nul
|
||||
popd
|
||||
exit /b
|
||||
)
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ echo:
|
|||
echo Check this webpage for help - %mas%fix_service
|
||||
echo:
|
||||
echo:
|
||||
ping 127.0.0.1 -n 20
|
||||
timeout /t 20 /nobreak >nul
|
||||
)
|
||||
cls
|
||||
|
||||
|
|
@ -130,7 +130,7 @@ echo:
|
|||
echo Check this webpage for help - %mas%troubleshoot
|
||||
echo:
|
||||
echo:
|
||||
ping 127.0.0.1 -n 20 >nul
|
||||
timeout /t 20 /nobreak >nul
|
||||
popd
|
||||
exit /b
|
||||
)
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ echo:
|
|||
echo Check this webpage for help - %mas%fix_service
|
||||
echo:
|
||||
echo:
|
||||
ping 127.0.0.1 -n 20
|
||||
timeout /t 20 /nobreak >nul
|
||||
)
|
||||
cls
|
||||
|
||||
|
|
@ -155,7 +155,7 @@ echo:
|
|||
echo Check this webpage for help - %mas%troubleshoot
|
||||
echo:
|
||||
echo:
|
||||
ping 127.0.0.1 -n 20 >nul
|
||||
timeout /t 20 /nobreak >nul
|
||||
popd
|
||||
exit /b
|
||||
)
|
||||
|
|
@ -1851,7 +1851,7 @@ if %_wmic% EQU 1 wmic path Win32_ComputerSystem get CreationClassName /value 2>n
|
|||
if %_wmic% EQU 0 %psc% "Get-CIMInstance -Class Win32_ComputerSystem | Select-Object -Property CreationClassName" 2>nul | find /i "computersystem" 1>nul
|
||||
if !errorlevel! NEQ 0 (set e_wmispp=WMI, SPP) else (set e_wmispp=SPP)
|
||||
echo:
|
||||
echo Error: Not Respoding- !e_wmispp!
|
||||
echo Error: Not Responding - !e_wmispp!
|
||||
echo:
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ echo:
|
|||
echo Check this webpage for help - %mas%fix_service
|
||||
echo:
|
||||
echo:
|
||||
ping 127.0.0.1 -n 20
|
||||
timeout /t 20 /nobreak >nul
|
||||
)
|
||||
cls
|
||||
|
||||
|
|
@ -164,7 +164,7 @@ echo:
|
|||
echo Check this webpage for help - %mas%troubleshoot
|
||||
echo:
|
||||
echo:
|
||||
ping 127.0.0.1 -n 20 >nul
|
||||
timeout /t 20 /nobreak >nul
|
||||
popd
|
||||
exit /b
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue