zai
19-06-2017, 22:47
Написал батник для установки mse через gpo, так будет работать?
@echo off
ver | find /i "6.1" && (goto check_prog) || (goto exit)
:check_prog
set "prog=C:\Program Files\Microsoft Security Client\msseces.exe"
if not exist "%prog%" (goto check_os) else (goto exit)
:check_os
echo %processor_architecture% | find /i "AMD64" && (goto update_x64) || (goto update_x86)
:update_x86
\\COMP\update\MSE\x86\mseinstall.exe /q /s /runwgacheck
goto exit
:update_x64
\\COMP\update\MSE\x64\mseinstall.exe /q /s /runwgacheck
:exit
@echo off
ver | find /i "6.1" && (goto check_prog) || (goto exit)
:check_prog
set "prog=C:\Program Files\Microsoft Security Client\msseces.exe"
if not exist "%prog%" (goto check_os) else (goto exit)
:check_os
echo %processor_architecture% | find /i "AMD64" && (goto update_x64) || (goto update_x86)
:update_x86
\\COMP\update\MSE\x86\mseinstall.exe /q /s /runwgacheck
goto exit
:update_x64
\\COMP\update\MSE\x64\mseinstall.exe /q /s /runwgacheck
:exit