Add -nop -c with Powershell

This commit is contained in:
WindowsAddict 2025-04-13 03:45:34 +05:30
parent 60dd549a49
commit 8673fbbfda
10 changed files with 22 additions and 22 deletions

View file

@ -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