mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2025-05-09 13:52:02 -04:00
Add -nop -c with Powershell
This commit is contained in:
parent
60dd549a49
commit
8673fbbfda
10 changed files with 22 additions and 22 deletions
|
@ -192,7 +192,7 @@ for /f "delims=" %%a in ('cmd /c "%psc% ""if ($PSVersionTable.PSEdition -ne 'Cor
|
|||
|
||||
if /i not "%tstresult%"=="FullLanguage" (
|
||||
%eline%
|
||||
echo %tstresult%
|
||||
echo: %tstresult%
|
||||
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
||||
|
||||
REM check LanguageMode
|
||||
|
@ -1460,7 +1460,7 @@ exit /b
|
|||
|
||||
:dk_setvar
|
||||
|
||||
set psc=powershell.exe
|
||||
set psc=powershell.exe -nop -c
|
||||
set winbuild=1
|
||||
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue