Compare commits
No commits in common. "3b739d7e2bac5ac01c0dac87855ca1fb72c6b54b" and "60dd549a4982c39f972271b638f3af2ab98c776e" have entirely different histories.
3b739d7e2b
...
60dd549a49
|
@ -200,12 +200,13 @@ for /f "delims=" %%a in ('cmd /c "%psc% ""if ($PSVersionTable.PSEdition -ne 'Cor
|
||||||
|
|
||||||
if /i not "%tstresult%"=="FullLanguage" (
|
if /i not "%tstresult%"=="FullLanguage" (
|
||||||
%eline%
|
%eline%
|
||||||
echo: %tstresult%
|
echo %tstresult%
|
||||||
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
||||||
|
|
||||||
REM check LanguageMode
|
REM check LanguageMode
|
||||||
|
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
|
%eline%
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
echo:
|
||||||
|
@ -221,17 +222,6 @@ echo Windows Powershell is needed for MAS but it seems to be replaced with Power
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
REM check for Mal-ware that may cause issues with Powershell
|
|
||||||
|
|
||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
|
||||||
echo "%%f"
|
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
|
||||||
goto dk_done
|
|
||||||
)
|
|
||||||
|
|
||||||
REM check antivirus and other errors
|
REM check antivirus and other errors
|
||||||
|
|
||||||
echo PowerShell is not working properly. Aborting...
|
echo PowerShell is not working properly. Aborting...
|
||||||
|
@ -1078,7 +1068,7 @@ goto :dk_done
|
||||||
|
|
||||||
:dk_setvar
|
:dk_setvar
|
||||||
|
|
||||||
set psc=powershell.exe -nop -c
|
set psc=powershell.exe
|
||||||
set winbuild=1
|
set winbuild=1
|
||||||
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
||||||
|
|
||||||
|
@ -11271,7 +11261,7 @@ set _tserror=
|
||||||
set winbuild=1
|
set winbuild=1
|
||||||
set "nul=>nul 2>&1"
|
set "nul=>nul 2>&1"
|
||||||
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
||||||
set psc=powershell.exe -nop -c
|
set psc=powershell.exe
|
||||||
|
|
||||||
set run_once=
|
set run_once=
|
||||||
set t_name=Renewal Task
|
set t_name=Renewal Task
|
||||||
|
|
|
@ -239,12 +239,13 @@ for /f "delims=" %%a in ('cmd /c "%psc% ""if ($PSVersionTable.PSEdition -ne 'Cor
|
||||||
|
|
||||||
if /i not "%tstresult%"=="FullLanguage" (
|
if /i not "%tstresult%"=="FullLanguage" (
|
||||||
%eline%
|
%eline%
|
||||||
echo: %tstresult%
|
echo %tstresult%
|
||||||
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
||||||
|
|
||||||
REM check LanguageMode
|
REM check LanguageMode
|
||||||
|
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
|
%eline%
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
echo:
|
||||||
|
@ -260,17 +261,6 @@ echo Windows Powershell is needed for MAS but it seems to be replaced with Power
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
REM check for Mal-ware that may cause issues with Powershell
|
|
||||||
|
|
||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
|
||||||
echo "%%f"
|
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
|
||||||
goto dk_done
|
|
||||||
)
|
|
||||||
|
|
||||||
REM check antivirus and other errors
|
REM check antivirus and other errors
|
||||||
|
|
||||||
echo PowerShell is not working properly. Aborting...
|
echo PowerShell is not working properly. Aborting...
|
||||||
|
@ -809,7 +799,7 @@ goto :dk_done
|
||||||
|
|
||||||
:dk_setvar
|
:dk_setvar
|
||||||
|
|
||||||
set psc=powershell.exe -nop -c
|
set psc=powershell.exe
|
||||||
set winbuild=1
|
set winbuild=1
|
||||||
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
||||||
|
|
||||||
|
|
|
@ -242,12 +242,13 @@ for /f "delims=" %%a in ('cmd /c "%psc% ""if ($PSVersionTable.PSEdition -ne 'Cor
|
||||||
|
|
||||||
if /i not "%tstresult%"=="FullLanguage" (
|
if /i not "%tstresult%"=="FullLanguage" (
|
||||||
%eline%
|
%eline%
|
||||||
echo: %tstresult%
|
echo %tstresult%
|
||||||
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
||||||
|
|
||||||
REM check LanguageMode
|
REM check LanguageMode
|
||||||
|
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
|
%eline%
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
echo:
|
||||||
|
@ -263,17 +264,6 @@ echo Windows Powershell is needed for MAS but it seems to be replaced with Power
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
REM check for Mal-ware that may cause issues with Powershell
|
|
||||||
|
|
||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
|
||||||
echo "%%f"
|
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
|
||||||
goto dk_done
|
|
||||||
)
|
|
||||||
|
|
||||||
REM check antivirus and other errors
|
REM check antivirus and other errors
|
||||||
|
|
||||||
echo PowerShell is not working properly. Aborting...
|
echo PowerShell is not working properly. Aborting...
|
||||||
|
@ -915,7 +905,7 @@ $key.SetAccessControl($acl)
|
||||||
|
|
||||||
:dk_setvar
|
:dk_setvar
|
||||||
|
|
||||||
set psc=powershell.exe -nop -c
|
set psc=powershell.exe
|
||||||
set winbuild=1
|
set winbuild=1
|
||||||
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
||||||
|
|
||||||
|
|
|
@ -232,12 +232,13 @@ for /f "delims=" %%a in ('cmd /c "%psc% ""if ($PSVersionTable.PSEdition -ne 'Cor
|
||||||
|
|
||||||
if /i not "%tstresult%"=="FullLanguage" (
|
if /i not "%tstresult%"=="FullLanguage" (
|
||||||
%eline%
|
%eline%
|
||||||
echo: %tstresult%
|
echo %tstresult%
|
||||||
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
||||||
|
|
||||||
REM check LanguageMode
|
REM check LanguageMode
|
||||||
|
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
|
%eline%
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
echo:
|
||||||
|
@ -253,17 +254,6 @@ echo Windows Powershell is needed for MAS but it seems to be replaced with Power
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
REM check for Mal-ware that may cause issues with Powershell
|
|
||||||
|
|
||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
|
||||||
echo "%%f"
|
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
|
||||||
goto dk_done
|
|
||||||
)
|
|
||||||
|
|
||||||
REM check antivirus and other errors
|
REM check antivirus and other errors
|
||||||
|
|
||||||
echo PowerShell is not working properly. Aborting...
|
echo PowerShell is not working properly. Aborting...
|
||||||
|
@ -1337,7 +1327,7 @@ exit /b
|
||||||
|
|
||||||
:dk_setvar
|
:dk_setvar
|
||||||
|
|
||||||
set psc=powershell.exe -nop -c
|
set psc=powershell.exe
|
||||||
set winbuild=1
|
set winbuild=1
|
||||||
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
||||||
|
|
||||||
|
|
|
@ -261,12 +261,13 @@ for /f "delims=" %%a in ('cmd /c "%psc% ""if ($PSVersionTable.PSEdition -ne 'Cor
|
||||||
|
|
||||||
if /i not "%tstresult%"=="FullLanguage" (
|
if /i not "%tstresult%"=="FullLanguage" (
|
||||||
%eline%
|
%eline%
|
||||||
echo: %tstresult%
|
echo %tstresult%
|
||||||
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
||||||
|
|
||||||
REM check LanguageMode
|
REM check LanguageMode
|
||||||
|
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
|
%eline%
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
echo:
|
||||||
|
@ -282,17 +283,6 @@ echo Windows Powershell is needed for MAS but it seems to be replaced with Power
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
REM check for Mal-ware that may cause issues with Powershell
|
|
||||||
|
|
||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
|
||||||
echo "%%f"
|
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
|
||||||
goto dk_done
|
|
||||||
)
|
|
||||||
|
|
||||||
REM check antivirus and other errors
|
REM check antivirus and other errors
|
||||||
|
|
||||||
echo PowerShell is not working properly. Aborting...
|
echo PowerShell is not working properly. Aborting...
|
||||||
|
@ -1656,7 +1646,7 @@ set _tserror=
|
||||||
set winbuild=1
|
set winbuild=1
|
||||||
set "nul=>nul 2>&1"
|
set "nul=>nul 2>&1"
|
||||||
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
||||||
set psc=powershell.exe -nop -c
|
set psc=powershell.exe
|
||||||
|
|
||||||
set run_once=
|
set run_once=
|
||||||
set t_name=Renewal Task
|
set t_name=Renewal Task
|
||||||
|
@ -2342,7 +2332,7 @@ exit /b
|
||||||
|
|
||||||
:dk_setvar
|
:dk_setvar
|
||||||
|
|
||||||
set psc=powershell.exe -nop -c
|
set psc=powershell.exe
|
||||||
set winbuild=1
|
set winbuild=1
|
||||||
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
||||||
|
|
||||||
|
|
|
@ -267,12 +267,13 @@ for /f "delims=" %%a in ('cmd /c "%psc% ""if ($PSVersionTable.PSEdition -ne 'Cor
|
||||||
|
|
||||||
if /i not "%tstresult%"=="FullLanguage" (
|
if /i not "%tstresult%"=="FullLanguage" (
|
||||||
%eline%
|
%eline%
|
||||||
echo: %tstresult%
|
echo %tstresult%
|
||||||
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
||||||
|
|
||||||
REM check LanguageMode
|
REM check LanguageMode
|
||||||
|
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
|
%eline%
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
echo:
|
||||||
|
@ -288,17 +289,6 @@ echo Windows Powershell is needed for MAS but it seems to be replaced with Power
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
REM check for Mal-ware that may cause issues with Powershell
|
|
||||||
|
|
||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
|
||||||
echo "%%f"
|
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
|
||||||
goto dk_done
|
|
||||||
)
|
|
||||||
|
|
||||||
REM check antivirus and other errors
|
REM check antivirus and other errors
|
||||||
|
|
||||||
echo PowerShell is not working properly. Aborting...
|
echo PowerShell is not working properly. Aborting...
|
||||||
|
@ -1965,7 +1955,7 @@ exit /b
|
||||||
|
|
||||||
:dk_setvar
|
:dk_setvar
|
||||||
|
|
||||||
set psc=powershell.exe -nop -c
|
set psc=powershell.exe
|
||||||
set winbuild=1
|
set winbuild=1
|
||||||
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
||||||
|
|
||||||
|
|
|
@ -192,12 +192,13 @@ for /f "delims=" %%a in ('cmd /c "%psc% ""if ($PSVersionTable.PSEdition -ne 'Cor
|
||||||
|
|
||||||
if /i not "%tstresult%"=="FullLanguage" (
|
if /i not "%tstresult%"=="FullLanguage" (
|
||||||
%eline%
|
%eline%
|
||||||
echo: %tstresult%
|
echo %tstresult%
|
||||||
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
||||||
|
|
||||||
REM check LanguageMode
|
REM check LanguageMode
|
||||||
|
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
|
%eline%
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
echo:
|
||||||
|
@ -213,17 +214,6 @@ echo Windows Powershell is needed for MAS but it seems to be replaced with Power
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
REM check for Mal-ware that may cause issues with Powershell
|
|
||||||
|
|
||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
|
||||||
echo "%%f"
|
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
|
||||||
goto dk_done
|
|
||||||
)
|
|
||||||
|
|
||||||
REM check antivirus and other errors
|
REM check antivirus and other errors
|
||||||
|
|
||||||
echo PowerShell is not working properly. Aborting...
|
echo PowerShell is not working properly. Aborting...
|
||||||
|
@ -1353,7 +1343,7 @@ if ($appIdsList.Count -gt 0) {
|
||||||
|
|
||||||
:dk_setvar
|
:dk_setvar
|
||||||
|
|
||||||
set psc=powershell.exe -nop -c
|
set psc=powershell.exe
|
||||||
set winbuild=1
|
set winbuild=1
|
||||||
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
||||||
|
|
||||||
|
|
|
@ -197,12 +197,13 @@ for /f "delims=" %%a in ('cmd /c "%psc% ""if ($PSVersionTable.PSEdition -ne 'Cor
|
||||||
|
|
||||||
if /i not "%tstresult%"=="FullLanguage" (
|
if /i not "%tstresult%"=="FullLanguage" (
|
||||||
%eline%
|
%eline%
|
||||||
echo: %tstresult%
|
echo %tstresult%
|
||||||
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
||||||
|
|
||||||
REM check LanguageMode
|
REM check LanguageMode
|
||||||
|
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
|
%eline%
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
echo:
|
||||||
|
@ -218,17 +219,6 @@ echo Windows Powershell is needed for MAS but it seems to be replaced with Power
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
REM check for Mal-ware that may cause issues with Powershell
|
|
||||||
|
|
||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
|
||||||
echo "%%f"
|
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
|
||||||
goto dk_done
|
|
||||||
)
|
|
||||||
|
|
||||||
REM check antivirus and other errors
|
REM check antivirus and other errors
|
||||||
|
|
||||||
echo PowerShell is not working properly. Aborting...
|
echo PowerShell is not working properly. Aborting...
|
||||||
|
@ -825,7 +815,7 @@ exit /b
|
||||||
|
|
||||||
:dk_setvar
|
:dk_setvar
|
||||||
|
|
||||||
set psc=powershell.exe -nop -c
|
set psc=powershell.exe
|
||||||
set winbuild=1
|
set winbuild=1
|
||||||
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
||||||
|
|
||||||
|
|
|
@ -191,12 +191,13 @@ for /f "delims=" %%a in ('cmd /c "%psc% ""if ($PSVersionTable.PSEdition -ne 'Cor
|
||||||
|
|
||||||
if /i not "%tstresult%"=="FullLanguage" (
|
if /i not "%tstresult%"=="FullLanguage" (
|
||||||
%eline%
|
%eline%
|
||||||
echo: %tstresult%
|
echo %tstresult%
|
||||||
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
||||||
|
|
||||||
REM check LanguageMode
|
REM check LanguageMode
|
||||||
|
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
|
%eline%
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
echo:
|
||||||
|
@ -212,17 +213,6 @@ echo Windows Powershell is needed for MAS but it seems to be replaced with Power
|
||||||
goto done2
|
goto done2
|
||||||
)
|
)
|
||||||
|
|
||||||
REM check for Mal-ware that may cause issues with Powershell
|
|
||||||
|
|
||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
|
||||||
echo "%%f"
|
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
|
||||||
goto done2
|
|
||||||
)
|
|
||||||
|
|
||||||
REM check antivirus and other errors
|
REM check antivirus and other errors
|
||||||
|
|
||||||
echo PowerShell is not working properly. Aborting...
|
echo PowerShell is not working properly. Aborting...
|
||||||
|
@ -733,7 +723,7 @@ exit /b
|
||||||
|
|
||||||
:dk_setvar
|
:dk_setvar
|
||||||
|
|
||||||
set psc=powershell.exe -nop -c
|
set psc=powershell.exe
|
||||||
set winbuild=1
|
set winbuild=1
|
||||||
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
||||||
|
|
||||||
|
|
|
@ -192,12 +192,13 @@ for /f "delims=" %%a in ('cmd /c "%psc% ""if ($PSVersionTable.PSEdition -ne 'Cor
|
||||||
|
|
||||||
if /i not "%tstresult%"=="FullLanguage" (
|
if /i not "%tstresult%"=="FullLanguage" (
|
||||||
%eline%
|
%eline%
|
||||||
echo: %tstresult%
|
echo %tstresult%
|
||||||
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
cmd /c "%psc% $ExecutionContext.SessionState.LanguageMode"
|
||||||
|
|
||||||
REM check LanguageMode
|
REM check LanguageMode
|
||||||
|
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
|
%eline%
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
echo:
|
||||||
|
@ -213,17 +214,6 @@ echo Windows Powershell is needed for MAS but it seems to be replaced with Power
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
REM check for Mal-ware that may cause issues with Powershell
|
|
||||||
|
|
||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
|
||||||
echo "%%f"
|
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
|
||||||
goto dk_done
|
|
||||||
)
|
|
||||||
|
|
||||||
REM check antivirus and other errors
|
REM check antivirus and other errors
|
||||||
|
|
||||||
echo PowerShell is not working properly. Aborting...
|
echo PowerShell is not working properly. Aborting...
|
||||||
|
@ -1470,7 +1460,7 @@ exit /b
|
||||||
|
|
||||||
:dk_setvar
|
:dk_setvar
|
||||||
|
|
||||||
set psc=powershell.exe -nop -c
|
set psc=powershell.exe
|
||||||
set winbuild=1
|
set winbuild=1
|
||||||
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue