mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2025-06-09 05:39:49 +00:00
Compare commits
3 Commits
8fff2ccb9c
...
9f00df5aee
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9f00df5aee | ||
![]() |
d6aa8b97d1 | ||
![]() |
c00b076a86 |
@ -76,7 +76,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
@ -172,9 +172,9 @@ goto dk_done
|
|||||||
|
|
||||||
:: Check PowerShell
|
:: Check PowerShell
|
||||||
|
|
||||||
REM :PowerShellTest: $ExecutionContext.SessionState.LanguageMode :PowerShellTest:
|
REM :PStest: $ExecutionContext.SessionState.LanguageMode :PStest:
|
||||||
|
|
||||||
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PowerShellTest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PStest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
||||||
%eline%
|
%eline%
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
||||||
echo:
|
echo:
|
||||||
@ -900,29 +900,42 @@ call :dk_color %Red% "Generating New IdentityCRL Registry [Failed] [%_ident%
|
|||||||
|
|
||||||
reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableWindowsUpdateAccess %nul2% | find /i "0x1" %nul% && set wublock=1
|
reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableWindowsUpdateAccess %nul2% | find /i "0x1" %nul% && set wublock=1
|
||||||
reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DoNotConnectToWindowsUpdateInternetLocations %nul2% | find /i "0x1" %nul% && set wublock=1
|
reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DoNotConnectToWindowsUpdateInternetLocations %nul2% | find /i "0x1" %nul% && set wublock=1
|
||||||
if defined wublock call :dk_color %Red% "Checking Update Blocker In Registry [Found]"
|
if defined wublock (
|
||||||
|
call :dk_color %Red% "Checking Update Blocker In Registry [Found]"
|
||||||
|
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
||||||
|
)
|
||||||
|
|
||||||
reg query "HKLM\SOFTWARE\Policies\Microsoft\WindowsStore" /v DisableStoreApps %nul2% | find /i "0x1" %nul% && (
|
reg query "HKLM\SOFTWARE\Policies\Microsoft\WindowsStore" /v DisableStoreApps %nul2% | find /i "0x1" %nul% && (
|
||||||
set storeblock=1
|
set storeblock=1
|
||||||
call :dk_color %Red% "Checking Store Blocker In Registry [Found]"
|
call :dk_color %Red% "Checking Store Blocker In Registry [Found]"
|
||||||
|
call :dk_color %Blue% "If you have used any tool to block Store, undo it."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set wcount=0
|
||||||
for %%G in (DependOnService Description DisplayName ErrorControl ImagePath ObjectName Start Type ServiceSidType RequiredPrivileges FailureActions) do if not defined wucorrupt (
|
for %%G in (DependOnService Description DisplayName ErrorControl ImagePath ObjectName Start Type ServiceSidType RequiredPrivileges FailureActions) do if not defined wucorrupt (
|
||||||
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv /v %%G %nul% || set wucorrupt=1
|
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv /v %%G %nul% || (set wucorrupt=1&set /a wcount+=1)
|
||||||
)
|
)
|
||||||
|
|
||||||
for %%G in (Parameters Security TriggerInfo) do if not defined wucorrupt (
|
for %%G in (Parameters Security) do if not defined wucorrupt (
|
||||||
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\%%G %nul% || set wucorrupt=1
|
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\%%G %nul% || (set wucorrupt=1&set /a wcount+=1)
|
||||||
)
|
)
|
||||||
|
|
||||||
if defined wucorrupt (
|
if defined wucorrupt (
|
||||||
call :dk_color %Red% "Checking Windows Update Registry [Corruption Found]"
|
call :dk_color %Red% "Checking Windows Update Registry [Corruption Found]"
|
||||||
|
if !wcount! GTR 2 (
|
||||||
|
call :dk_color %Red% "Windows seems to be infected with Mal%w%ware."
|
||||||
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
|
) else (
|
||||||
|
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
||||||
|
)
|
||||||
) else (
|
) else (
|
||||||
%psc% "Start-Job { Start-Service wuauserv } | Wait-Job -Timeout 20 | Out-Null"
|
%psc% "Start-Job { Start-Service wuauserv } | Wait-Job -Timeout 20 | Out-Null"
|
||||||
sc query wuauserv | find /i "RUNNING" %nul% || (
|
sc query wuauserv | find /i "RUNNING" %nul% || (
|
||||||
set wuerror=1
|
set wuerror=1
|
||||||
sc start wuauserv %nul%
|
sc start wuauserv %nul%
|
||||||
call :dk_color %Red% "Starting Windows Update Service [Failed] [!errorlevel!]"
|
call :dk_color %Red% "Starting Windows Update Service [Failed] [!errorlevel!]"
|
||||||
|
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1466,6 +1479,11 @@ echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
|||||||
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
|
echo %serv_e% | findstr /i "sppsvc-1060" %nul% && (
|
||||||
|
set fixes=%fixes% %mas%fix_service
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%fix_service"
|
||||||
|
set showfix=1
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
@ -109,7 +109,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
@ -211,9 +211,9 @@ goto dk_done
|
|||||||
|
|
||||||
:: Check PowerShell
|
:: Check PowerShell
|
||||||
|
|
||||||
REM :PowerShellTest: $ExecutionContext.SessionState.LanguageMode :PowerShellTest:
|
REM :PStest: $ExecutionContext.SessionState.LanguageMode :PStest:
|
||||||
|
|
||||||
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PowerShellTest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PStest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
||||||
%eline%
|
%eline%
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
||||||
echo:
|
echo:
|
||||||
@ -663,29 +663,42 @@ call :dk_color %Red% "Generating New IdentityCRL Registry [Failed] [%_ident%
|
|||||||
|
|
||||||
reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableWindowsUpdateAccess %nul2% | find /i "0x1" %nul% && set wublock=1
|
reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableWindowsUpdateAccess %nul2% | find /i "0x1" %nul% && set wublock=1
|
||||||
reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DoNotConnectToWindowsUpdateInternetLocations %nul2% | find /i "0x1" %nul% && set wublock=1
|
reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DoNotConnectToWindowsUpdateInternetLocations %nul2% | find /i "0x1" %nul% && set wublock=1
|
||||||
if defined wublock call :dk_color %Red% "Checking Update Blocker In Registry [Found]"
|
if defined wublock (
|
||||||
|
call :dk_color %Red% "Checking Update Blocker In Registry [Found]"
|
||||||
|
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
||||||
|
)
|
||||||
|
|
||||||
reg query "HKLM\SOFTWARE\Policies\Microsoft\WindowsStore" /v DisableStoreApps %nul2% | find /i "0x1" %nul% && (
|
reg query "HKLM\SOFTWARE\Policies\Microsoft\WindowsStore" /v DisableStoreApps %nul2% | find /i "0x1" %nul% && (
|
||||||
set storeblock=1
|
set storeblock=1
|
||||||
call :dk_color %Red% "Checking Store Blocker In Registry [Found]"
|
call :dk_color %Red% "Checking Store Blocker In Registry [Found]"
|
||||||
|
call :dk_color %Blue% "If you have used any tool to block Store, undo it."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set wcount=0
|
||||||
for %%G in (DependOnService Description DisplayName ErrorControl ImagePath ObjectName Start Type ServiceSidType RequiredPrivileges FailureActions) do if not defined wucorrupt (
|
for %%G in (DependOnService Description DisplayName ErrorControl ImagePath ObjectName Start Type ServiceSidType RequiredPrivileges FailureActions) do if not defined wucorrupt (
|
||||||
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv /v %%G %nul% || set wucorrupt=1
|
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv /v %%G %nul% || (set wucorrupt=1&set /a wcount+=1)
|
||||||
)
|
)
|
||||||
|
|
||||||
for %%G in (Parameters Security TriggerInfo) do if not defined wucorrupt (
|
for %%G in (Parameters Security) do if not defined wucorrupt (
|
||||||
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\%%G %nul% || set wucorrupt=1
|
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\%%G %nul% || (set wucorrupt=1&set /a wcount+=1)
|
||||||
)
|
)
|
||||||
|
|
||||||
if defined wucorrupt (
|
if defined wucorrupt (
|
||||||
call :dk_color %Red% "Checking Windows Update Registry [Corruption Found]"
|
call :dk_color %Red% "Checking Windows Update Registry [Corruption Found]"
|
||||||
|
if !wcount! GTR 2 (
|
||||||
|
call :dk_color %Red% "Windows seems to be infected with Mal%w%ware."
|
||||||
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
|
) else (
|
||||||
|
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
||||||
|
)
|
||||||
) else (
|
) else (
|
||||||
%psc% "Start-Job { Start-Service wuauserv } | Wait-Job -Timeout 20 | Out-Null"
|
%psc% "Start-Job { Start-Service wuauserv } | Wait-Job -Timeout 20 | Out-Null"
|
||||||
sc query wuauserv | find /i "RUNNING" %nul% || (
|
sc query wuauserv | find /i "RUNNING" %nul% || (
|
||||||
set wuerror=1
|
set wuerror=1
|
||||||
sc start wuauserv %nul%
|
sc start wuauserv %nul%
|
||||||
call :dk_color %Red% "Starting Windows Update Service [Failed] [!errorlevel!]"
|
call :dk_color %Red% "Starting Windows Update Service [Failed] [!errorlevel!]"
|
||||||
|
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1213,6 +1226,11 @@ echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
|||||||
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
|
echo %serv_e% | findstr /i "sppsvc-1060" %nul% && (
|
||||||
|
set fixes=%fixes% %mas%fix_service
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%fix_service"
|
||||||
|
set showfix=1
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
@ -112,7 +112,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
@ -214,9 +214,9 @@ goto dk_done
|
|||||||
|
|
||||||
:: Check PowerShell
|
:: Check PowerShell
|
||||||
|
|
||||||
REM :PowerShellTest: $ExecutionContext.SessionState.LanguageMode :PowerShellTest:
|
REM :PStest: $ExecutionContext.SessionState.LanguageMode :PStest:
|
||||||
|
|
||||||
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PowerShellTest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PStest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
||||||
%eline%
|
%eline%
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
||||||
echo:
|
echo:
|
||||||
@ -1378,6 +1378,11 @@ echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
|||||||
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
|
echo %serv_e% | findstr /i "sppsvc-1060" %nul% && (
|
||||||
|
set fixes=%fixes% %mas%fix_service
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%fix_service"
|
||||||
|
set showfix=1
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
@ -109,7 +109,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
@ -204,9 +204,9 @@ goto dk_done
|
|||||||
|
|
||||||
:: Check PowerShell
|
:: Check PowerShell
|
||||||
|
|
||||||
REM :PowerShellTest: $ExecutionContext.SessionState.LanguageMode :PowerShellTest:
|
REM :PStest: $ExecutionContext.SessionState.LanguageMode :PStest:
|
||||||
|
|
||||||
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PowerShellTest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PStest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
||||||
%eline%
|
%eline%
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
||||||
echo:
|
echo:
|
||||||
@ -1707,6 +1707,11 @@ echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
|||||||
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
|
echo %serv_e% | findstr /i "sppsvc-1060" %nul% && (
|
||||||
|
set fixes=%fixes% %mas%fix_service
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%fix_service"
|
||||||
|
set showfix=1
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
@ -134,7 +134,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
@ -233,9 +233,9 @@ goto dk_done
|
|||||||
|
|
||||||
:: Check PowerShell
|
:: Check PowerShell
|
||||||
|
|
||||||
REM :PowerShellTest: $ExecutionContext.SessionState.LanguageMode :PowerShellTest:
|
REM :PStest: $ExecutionContext.SessionState.LanguageMode :PStest:
|
||||||
|
|
||||||
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PowerShellTest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PStest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
||||||
%eline%
|
%eline%
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
||||||
echo:
|
echo:
|
||||||
@ -2808,6 +2808,11 @@ echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
|||||||
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
|
echo %serv_e% | findstr /i "sppsvc-1060" %nul% && (
|
||||||
|
set fixes=%fixes% %mas%fix_service
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%fix_service"
|
||||||
|
set showfix=1
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
@ -69,7 +69,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
@ -164,9 +164,9 @@ goto dk_done
|
|||||||
|
|
||||||
:: Check PowerShell
|
:: Check PowerShell
|
||||||
|
|
||||||
REM :PowerShellTest: $ExecutionContext.SessionState.LanguageMode :PowerShellTest:
|
REM :PStest: $ExecutionContext.SessionState.LanguageMode :PStest:
|
||||||
|
|
||||||
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PowerShellTest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PStest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
||||||
%eline%
|
%eline%
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
||||||
echo:
|
echo:
|
||||||
|
@ -74,7 +74,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
@ -169,9 +169,9 @@ goto dk_done
|
|||||||
|
|
||||||
:: Check PowerShell
|
:: Check PowerShell
|
||||||
|
|
||||||
REM :PowerShellTest: $ExecutionContext.SessionState.LanguageMode :PowerShellTest:
|
REM :PStest: $ExecutionContext.SessionState.LanguageMode :PStest:
|
||||||
|
|
||||||
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PowerShellTest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PStest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
||||||
%eline%
|
%eline%
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
||||||
echo:
|
echo:
|
||||||
|
@ -69,7 +69,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
@ -163,9 +163,9 @@ goto done2
|
|||||||
|
|
||||||
:: Check PowerShell
|
:: Check PowerShell
|
||||||
|
|
||||||
REM :PowerShellTest: $ExecutionContext.SessionState.LanguageMode :PowerShellTest:
|
REM :PStest: $ExecutionContext.SessionState.LanguageMode :PStest:
|
||||||
|
|
||||||
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PowerShellTest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PStest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
||||||
%eline%
|
%eline%
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
||||||
echo:
|
echo:
|
||||||
|
@ -69,7 +69,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
@ -164,9 +164,9 @@ goto dk_done
|
|||||||
|
|
||||||
:: Check PowerShell
|
:: Check PowerShell
|
||||||
|
|
||||||
REM :PowerShellTest: $ExecutionContext.SessionState.LanguageMode :PowerShellTest:
|
REM :PStest: $ExecutionContext.SessionState.LanguageMode :PStest:
|
||||||
|
|
||||||
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PowerShellTest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PStest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
||||||
%eline%
|
%eline%
|
||||||
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
||||||
echo:
|
echo:
|
||||||
|
Loading…
Reference in New Issue
Block a user