|
|
@ -206,7 +206,6 @@ 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: |
|
|
@ -222,6 +221,17 @@ 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... |
|
|
|