mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2025-05-25 12:54:55 +00:00
Add TSforge and Online KMS support for Vista/Server2008
This commit is contained in:
parent
172fd7b1c5
commit
98ef9db3ce
11 changed files with 1211 additions and 281 deletions
|
@ -23,10 +23,11 @@ set "Path=%SystemRoot%\Sysnative;%SystemRoot%;%SystemRoot%\Sysnative\Wbem;%Syste
|
|||
set "ComSpec=%SysPath%\cmd.exe"
|
||||
set "PSModulePath=%ProgramFiles%\WindowsPowerShell\Modules;%SysPath%\WindowsPowerShell\v1.0\Modules"
|
||||
|
||||
set "_psc=powershell -nop -c"
|
||||
set "ps=%SysPath%\WindowsPowerShell\v1.0\powershell.exe"
|
||||
set "_psc=%ps% -nop -c"
|
||||
set "_err===== ERROR ===="
|
||||
set _pwsh=1
|
||||
for %%# in (powershell.exe) do @if "%%~$PATH:#"=="" set _pwsh=0
|
||||
if not exist %ps% set _pwsh=0
|
||||
cmd /c "%_psc% "$ExecutionContext.SessionState.LanguageMode"" | find /i "FullLanguage" 1>nul || (set _pwsh=0)
|
||||
if %_pwsh% equ 0 (
|
||||
echo %_err%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue