윈 도 우 윈도우10 RS 자동최적화 bat(배치파일)
2017.09.16 14:41
1. 원드라이브 삭제
2. 윈도우 개인정보 전송 차단
3. 윈도우 초기시작시 앱 자동설치 차단
3개의 내용을 하나로 합친거뿐입니다.
일일히 최적화 하시는 분들도 계실까봐 올려봅니다.
자동앱설치 막기는 윈도우10부터는 초기 포맷설치시 자동으로 앱들을 설치하길래 블로그 참조해서 넣었습니다.
출처
https://github.com/TERRAOperative/OneDrive-Uninstaller/blob/master/OneDrive%20Uninstaller%20v1.2.bat
http://pcgeek.kr/index.php?mid=review&page=14&listStyle=gallery&document_srl=241973
http://slic.tistory.com/1200
@echo OFF
@REM 컬러 텍스트에 대한 변수 설정
SETLOCAL EnableDelayedExpansion
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
set "DEL=%%a"
)
echo ------Windows 10 RS2 원드라이브+개인정보전송+자동앱설치 차단------
echo.
@rem 관리자권한 확인하는 코드
NET SESSION >nul 2>&1
IF %ERRORLEVEL% EQU 0 (
echo Administrator Privileges Detected!
echo.
) ELSE (
echo.
call :colorEcho 0C "########### ERROR - ADMINISTRATOR PRIVILEGES REQUIRED #############"
echo.
call :colorEcho 0C "# #"
echo.
call :colorEcho 0C "#"
call :colorEcho 07 " This script must be run as administrator to work properly."
call :colorEcho 0C " #"
echo.
call :colorEcho 0C "#"
call :colorEcho 07 " If you're seeing this after clicking on a start menu icon,"
call :colorEcho 0C " #"
echo.
call :colorEcho 0C "#"
call :colorEcho 07 " then right click on the file and select 'Run As Administrator'"
call :colorEcho 0C " #"
echo.
call :colorEcho 0C "# #"
echo.
call :colorEcho 0C "###################################################################"
echo.
echo.
PAUSE
EXIT /B 1
)
echo -----------------------------------------------
call :colorEcho 0C " WARNING"
echo.
call :colorEcho 0C " This script will completely and permanently"
echo.
call :colorEcho 0C " remove OneDrive from your computer."
echo.
call :colorEcho 0C " Make sure all OneDrive documents"
echo.
call :colorEcho 0C " that are stored locally are fully"
echo.
call :colorEcho 0C " backed up before proceeding."
echo.
call :colorEcho 0C " 문제가 생기더라도 본인 책임입니다."
echo.
echo -----------------------------------------------
echo.
SET /P M= Press 'Y' to continue or any other key to exit.
if %M% ==Y goto PROCESSKILL
if %M% ==y goto PROCESSKILL
EXIT /B 1
@rem Terminate any OneDrive process
:PROCESSKILL
echo.
echo Terminating OneDrive process.
taskkill /f /im OneDrive.exe
@rem Detect if OS is 32 or 64 bit
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=32BIT || set OS=64BIT
if %OS%==32BIT GOTO 32BIT
if %OS%==64BIT GOTO 64BIT
@rem Uninstall OneDrive app
:32BIT
echo.
echo This is a 32-bit operating system.
echo Removing OneDrive setup files.
%SystemRoot%\System32\OneDriveSetup.exe /uninstall
GOTO CLEAN
:64BIT
echo.
echo This is a 64-bit operating system.
echo Removing OneDrive setup files.
%SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
GOTO CLEAN
@rem Clean and remove OneDrive remnants
:CLEAN
echo.
echo Removing remaining OneDrive folders.
rd "%UserProfile%\OneDrive" /Q /S
rd "%LocalAppData%\Microsoft\OneDrive" /Q /S
rd "%ProgramData%\Microsoft OneDrive" /Q /S
rd "C:\OneDriveTemp" /Q /S
echo.
call :colorEcho 0C "If you see 'access denied' errors here, reboot and run this batch file again."
echo.
@rem Delete and remove OneDrive in file explorer folder tree registry key
echo.
echo Removing OneDrive registry keys.
IF EXIST "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" REG Delete "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
IF EXIST "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" REG Delete "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
REG ADD "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /v System.IsPinnedToNameSpaceTree /d "0" /t REG_DWORD /f
echo.
echo OneDrive Uninstall and cleaning completed.
echo.
echo.
echo 불필요한 스케줄러 끄기...
echo.
echo.
echo Microsoft Compatibility Appraiser
echo - MS 사용자 환경 개선 프로그램에 옵트인(opt in)한 경우 프로그램 원격 분석 정보를 수집합니다.
schtasks.exe /Change /TN "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable
echo.
echo ProgramDataUpdater
echo - MS 사용자 환경 개선 프로그램에 설정된 경우 프로그램 원격 분석 정보를 수집합니다.
schtasks.exe /Change /TN "\Microsoft\Windows\Application Experience\ProgramDataUpdater" /Disable
echo.
echo StartupAppTask
echo - 시작 항목을 검색하고 시작 항목이 너무 많을 경우 사용자에게 알림을 표시합니다.
schtasks.exe /Change /TN "\Microsoft\Windows\Application Experience\StartupAppTask" /Disable
echo.
echo Consolidator
echo - Windows 사용자 환경 개선 프로그램에 참여하기로 동의한 경우 이 작업은 사용 데이터를 보냅니다.
schtasks.exe /Change /TN "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable
echo.
echo KernelCeipTask
echo - 커널 CEIP(사용자 환경 개선 프로그램) 작업은 시스템에 대한 추가 정보를 수집하고 이 데이터를 보냅니다.
schtasks.exe /Change /TN "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable
echo.
echo UsbCeip
echo - USB CEIP(사용자 환경 개선 프로그램) 작업은 사용자 컴퓨터에 대해 USB(범용 직렬 버스) 관련 정보를 수집.
schtasks.exe /Change /TN "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable
echo.
echo QueueReporting
echo - 진행할 Windows 오류 보고 작업에서 보고서를 큐에 넣었습니다.
schtasks.exe /Change /TN "\Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable
echo.
echo.
echo 개인정보 보호...
echo.
echo.
echo AllowTelemetry
echo - 윈도우에서 피드백을 통해 개인정보가 보내지는 것을 차단한다.
powershell.exe -command "Get-Service DiagTrack | Set-Service -StartupType Disabled"
powershell.exe -command "Get-Service dmwappushservice | Set-Service -StartupType Disabled"
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection\ /v AllowTelemetry /t REG_DWORD /d 0 /f
:: reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d "0" /f
echo.
echo NumberOfSIUFInPeriod
echo - 윈도우에서 내 피드백 요청 안함.
reg add "HKCU\SOFTWARE\Microsoft\Siuf\Rules" /v "NumberOfSIUFInPeriod" /t REG_DWORD /d "0" /f
reg delete "HKCU\SOFTWARE\Microsoft\Siuf\Rules" /v "PeriodInNanoSeconds" /f
echo.
echo Adverstising ID
echo - 앱에서 광고 ID를 사용하여 광고를 표시하는것을 끄기
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "Enabled" /t REG_DWORD /d "0" /f
reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "id" /f
:: reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "Enabled" /t REG_DWORD /d "0" /f
:: reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v "id" /f
echo.
echo HttpAcceptLanguageOptOut
echo - 웹에서 내 언어 목록에 액세스 끄기
reg add "HKCU\Control Panel\International\User Profile" /v "HttpAcceptLanguageOptOut" /t REG_DWORD /d "1" /f
:: Send Miccrosoft info about how ... (내 쓰기 방법에 대한 정보 보냄... Win10 RS2에서 없어짐)
:: reg add "HKCU\SOFTWARE\Microsoft\Input\TIPC" /v "Enabled" /t REG_DWORD /d "0" /f
echo.
echo DisableThirdPartySuggestions
echo - 윈도우10 자동으로 앱설치되는거 막기
reg add "HKCU\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsSpotlightFeatures" /t REG_DWORD /d "1" /f
echo.
echo DisableThirdPartySuggestions
echo - 윈도우10 자동으로 앱설치되는거 막기
reg add "HKCU\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableThirdPartySuggestions" /t REG_DWORD /d "1" /f
echo.
echo.
PAUSE
echo 고생하셨습니다, 만약 제대로 되지 않았다면 재부팅후 다시 실행해주세요....
PING -n 5 127.0.0.1>nul
EXIT /B 1
@rem Settings for text colour
:colorEcho
echo off
<nul set /p ".=%DEL%" > "%~2"
findstr /v /a:%1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1i
댓글 [20]
-
cungice 2017.09.16 15:16
-
소담 2017.09.16 16:23
감사합니다.
^^+++++
-
박삿갓 2017.09.16 16:54
고맙습니다.
-
노익장 2017.09.17 06:16
감사합니다^^
-
MastaWu 2017.09.17 14:36
감사합니다~!
-
CrazyHoONi 2017.09.18 08:23
감사합니다.
-
촌꼬마 2017.09.19 17:03
찾던 자료네요 ! 정말 감사합니다 !
-
현토리 2017.09.19 22:14
감사합니다.
-
지룡자 2017.09.20 07:14
감사합니다 나의 소중한 자료 목록에 추가 하겠습니다.. 자산이 늘어가네요~
-
싸펑피펑 2017.09.20 08:42
감사합니다.
-
쏠로몬 2017.09.21 02:25
고맙습니다 :)
-
수인 2017.09.21 07:19
감사합니다 -
오짜 2017.09.23 20:22
필요했었는데 감사합니다.
-
짱조아스 2017.09.24 19:46
좋은 자료 감사합니다.
-
미소체리 2017.09.25 16:30
감사합니다^^
-
yalbi 2017.10.05 09:14
자료 감사합니다.
포맷하고 윈도우 10 설치시 어느 단계에서 이 배치파일을 실행하여야 하나요?
-
제로데이 2017.10.07 17:35
윈도우10 진입과 동시에 실행하셔도 무방합니다.
그리고 초기앱설치때문이라도, 실행후 바로 재부팅 해주세요.
-
eisto 2017.10.27 10:54
늦었지만 감사합니다.
-
수줍은앙마 2018.05.05 08:50
감사합니다~ 잘 쓸게요
-
한번에한걸음씩 2021.12.01 01:06 혹시 윈도우11에도 적용이 가능한가요?
번호 | 제목 | 글쓴이 | 조회 | 추천 | 등록일 |
---|---|---|---|---|---|
[공지] | 강좌 작성간 참고해주세요 | gooddew | - | - | - |
3329 | 하드웨어| 파티션 클러스터 사이즈와 성능 [8] |
|
10680 | 0 | 10-17 |
3328 | 윈도우7에서 Flip 3D (바탕화면 3D 창전환) 아이콘 부활시... [4] | Star★Bros | 10680 | 0 | 05-11 |
3327 | 윈 도 우| ATi HD 계열 HDMI 출력 문제 해결방법 [6] | 세상에이런 | 10671 | 4 | 09-07 |
3326 | 미디어플레이어 64비트 설정 방법 [4] | 히로 | 10667 | 0 | 10-18 |
3325 | 소프트웨어| OEM 인증과 가상머신 인증관련 정리 [5] | gooddew | 10664 | 0 | 03-02 |
3324 | 기 타| 다른프로그램없이 XP 원격 데스크톱 연결 [3] | gooddew | 10663 | 0 | 11-02 |
3323 | 윈 도 우| 윈도우10 데이터 잡아먹는 P2P방식 업데이트 끄기 [10] | 기승전결 | 10657 | 4 | 08-09 |
3322 | 윈 도 우| 만능 윔 설치 파일 만들기 [13] | kenshin007 | 10652 | 26 | 12-25 |
3321 | 기 타| 마우스 오른쪽 버튼 막아놓은 사이트 해제 하기 [10] | gooddew | 10637 | 0 | 11-07 |
3320 | 소프트웨어| 2. 토렌트 메뉴얼 - 업로드 [11] | 공피 | 10635 | 8 | 02-07 |
3319 | 윈 도 우| 쓸모없는 부팅언어 제거 [13] | 우금티 | 10634 | 0 | 01-28 |
3318 | 서버 / IT| TeamViewer를 서버에서 개인용으로 써보기. [8] | 달려야하니 | 10631 | 2 | 05-06 |
3317 | 기 타| 360클라우드_빠른 다운 [22] | 구들목 | 10630 | 10 | 12-28 |
» | 윈 도 우| 윈도우10 RS 자동최적화 bat(배치파일) [20] | 제로데이 | 10623 | 14 | 09-16 |
3315 | 비스타에서 kmp 하드웨어 가속 [8] | 배터져 | 10608 | 0 | 02-05 |
3314 | 윈 도 우| sysprep.exe 옵션설정방법 | 조아세 | 10606 | 4 | 07-28 |
3313 | 기 타| [펌] PC에서 반드시 삭제해야 하는 프로그램들 [13] |
|
10603 | 6 | 11-14 |
3312 | 윈 도 우| 윈도우10 기본 앱 자동 삭제 프로그램 [6] | 알비온 | 10599 | 3 | 07-31 |
3311 | 홈베이직에서 얼티밋으로 업글 성공기 [4] |
|
10597 | 0 | 11-29 |
3310 | 윈 도 우| 윈도우8.1 에서 ipTIME 유무선공유기 192.168.0.1 접속이 ... [1] | 우주선 | 10577 | 5 | 11-25 |
수고 많으셨습니다. 감사합니다.