diff options
| author | WindowsAddict | 2024-10-31 00:30:02 +0000 |
|---|---|---|
| committer | WindowsAddict | 2024-10-31 00:30:02 +0000 |
| commit | 1849dd307500503bd5447daa13c5693017522b3d (patch) | |
| tree | a827801b961fed5c275d57001d7b275985881f08 /MAS/Separate-Files-Version/Extract_OEM_Folder.cmd | |
| parent | 8fe0b24945b5df8462dba06b88d024e4a003b525 (diff) | |
| download | Microsoft-Activation-Scripts-1849dd307500503bd5447daa13c5693017522b3d.zip | |
Show 3rd party AV list when Powershell check fails
Diffstat (limited to 'MAS/Separate-Files-Version/Extract_OEM_Folder.cmd')
| -rw-r--r-- | MAS/Separate-Files-Version/Extract_OEM_Folder.cmd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MAS/Separate-Files-Version/Extract_OEM_Folder.cmd b/MAS/Separate-Files-Version/Extract_OEM_Folder.cmd index 65edd77..36cc9b5 100644 --- a/MAS/Separate-Files-Version/Extract_OEM_Folder.cmd +++ b/MAS/Separate-Files-Version/Extract_OEM_Folder.cmd @@ -171,7 +171,8 @@ cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" echo:
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode"" | find /i "FullLanguage" %nul1% && (
echo Failed to run Powershell command but Powershell is working.
-call :dk_color %Blue% "Check if your antivirus is blocking the script."
+echo:
+cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { if ($i.displayName -notlike '*windows*') { $n += $i.displayName } }; if ($n) { Write-Host ('Installed 3rd party Antivirus might be blocking the script - ' + ($n -join ', ')) -ForegroundColor White -BackgroundColor Blue }"""
echo:
set fixes=%fixes% %mas%troubleshoot
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
|
