defender tweaks
This commit is contained in:
parent
ffb6cc4f4a
commit
bf8146c5d9
@ -5,6 +5,17 @@ set SOFTWARE=..\software
|
||||
|
||||
echo ####### %0 #######
|
||||
|
||||
rem ###################################
|
||||
rem Windows Defender Exception ...
|
||||
rem ###################################
|
||||
|
||||
echo disabling Windows defender for PATH [ %TOOLS% ] ...
|
||||
powershell -inputformat none -outputformat none -NonInteractive -Command Add-MpPreference -ExclusionPath %TOOLS%
|
||||
|
||||
rem ###################################
|
||||
rem MAIN loop ( copy .exe files ) ...
|
||||
rem ###################################
|
||||
|
||||
for %%E in (
|
||||
|
||||
bfg.jar
|
||||
|
@ -6,6 +6,18 @@ set SOFTWARE=..\software
|
||||
|
||||
echo ####### %0 #######
|
||||
|
||||
rem ###################################
|
||||
rem Windows Defender Exceptions ...
|
||||
rem ###################################
|
||||
|
||||
for %%A in (
|
||||
%T%
|
||||
%TOOLS%
|
||||
) do (
|
||||
echo disabling Windows defender for PATH [ %%A ] ...
|
||||
powershell -inputformat none -outputformat none -NonInteractive -Command Add-MpPreference -ExclusionPath %%A
|
||||
)
|
||||
|
||||
rem ###################################
|
||||
rem MAIN loop ( unzip archives ) ...
|
||||
rem ###################################
|
||||
@ -17,6 +29,7 @@ for %%A in (
|
||||
desktopinfo
|
||||
devmanview
|
||||
mas
|
||||
nsudo
|
||||
offlineregistryfinder
|
||||
rclone
|
||||
rdpwrap
|
||||
@ -87,10 +100,13 @@ copy /Y config\OfflineRegistryFinder.cfg %TOOLS%
|
||||
echo.
|
||||
|
||||
echo MAS
|
||||
powershell -Command "Set-MpPreference -DisableRealtimeMonitoring $true"
|
||||
move /Y %T%\mas\mas_aio*.cmd %TOOLS%\mas_aio.cmd
|
||||
rd /S /Q %T%\mas
|
||||
powershell -Command "Set-MpPreference -DisableRealtimeMonitoring $false"
|
||||
echo.
|
||||
|
||||
echo NSUDO
|
||||
move /Y %T%\nsudo\nsudo.exe %TOOLS%
|
||||
rd /S /Q %T%\nsudo
|
||||
echo.
|
||||
|
||||
echo RDPwrapper
|
||||
|
@ -43,6 +43,10 @@ echo FTP_PASS=xxxxxx
|
||||
echo ++++++++++++++++++
|
||||
echo.
|
||||
|
||||
echo disabling Windows defender for PATH [ %USERPROFILE% ] ...
|
||||
powershell -inputformat none -outputformat none -NonInteractive -Command Add-MpPreference -ExclusionPath %USERPROFILE%
|
||||
echo.
|
||||
|
||||
echo using list [ %LISTFILE% ] ...
|
||||
|
||||
rem ###################################
|
||||
|
@ -15,6 +15,10 @@ IF NOT EXIST %LISTFILE% (
|
||||
exit /b
|
||||
)
|
||||
|
||||
echo disabling Windows defender for PATH [ %USERPROFILE% ] ...
|
||||
powershell -inputformat none -outputformat none -NonInteractive -Command Add-MpPreference -ExclusionPath %USERPROFILE%
|
||||
echo.
|
||||
|
||||
echo using list [ %LISTFILE% ] ...
|
||||
|
||||
rem ###################################
|
||||
|
@ -346,6 +346,9 @@ reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandler
|
||||
echo Disabling beeping ...
|
||||
reg add "HKCU\Control Panel\Sound" /v "Beep" /t REG_SZ /d "no" /f 1>nul
|
||||
|
||||
echo disabling Windows defender for PATH [ %USERPROFILE% ] ...
|
||||
powershell -inputformat none -outputformat none -NonInteractive -Command Add-MpPreference -ExclusionPath %USERPROFILE%
|
||||
|
||||
rem no SEAFILE for the Admin!
|
||||
if "%USERNAME%" == "%localadmin%" GOTO SEAFILE_DONE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user