본문 바로가기
컴퓨터 Computer/레지스트리

429. 윈도우10 저장소 센스 비활성화 (자동 공간 확보 끄기) | Windows 10 Settings - System - Storage sense - Disable Storage Sense to Automatically

by #XTRM 2024. 9. 5.
반응형

Windows 10 Storage

Start > Windows Settings > System > Storage 

  - Storage Sense can automatically free up space by getting rid of files you don't need, like temporary files and content in your recycle bin.

 

윈도우10 저장소

시작 > Windows 설정 > 시스템 > 저장소

  - 저장소 센스는 임시 파일이나 휴지통의 콘텐츠 등과 같은 필요하지 않은 파일을 제거함으로써 공간을 자동으로 확보합니다.

 

CMD (Command Prompt) 명령 스크립트

이 명령어는 Windows 레지스트리에서 StorageSense 기능과 관련된 정책을 설정하거나 수정하는 데 사용됩니다. 시스템의 모든 사용자에 대해 StorageSense 기능이 비활성화됩니다. 이 설정은 시스템 관리자나 그룹 정책을 통해 구성된 경우, 사용자가 StorageSense 기능을 활성화할 수 없도록 제한합니다. 결과적으로, StorageSense가 사용되지 않으며, 사용자는 수동으로 디스크 공간을 관리해야 합니다. 이 설정은 특히 저장 공간 관리를 수동으로 처리하고자 하는 조직이나 사용자에게 유용할 수 있습니다.

reg.exe ADD "HKLM\Software\Policies\Microsoft\Windows\StorageSense" /v AllowStorageSenseGlobal /t REG_DWORD /d "0" /f

 

  • reg.exe: Windows 레지스트리를 수정하는 명령어입니다. 이 명령어를 통해 레지스트리 키나 값을 추가, 수정, 삭제할 수 있습니다.
  • ADD: 레지스트리에 새로운 값을 추가하거나 기존 값을 수정하는 옵션입니다.
  • "HKLM\Software\Policies\Microsoft\Windows\StorageSense":
    HKLM (HKEY_LOCAL_MACHINE): 이 레지스트리 하이브는 시스템 전체에 영향을 미치는 설정을 저장합니다. 모든 사용자에게 적용됩니다.
    그 뒤의 경로는 StorageSense 정책이 저장된 위치를 나타냅니다.
  • /v AllowStorageSenseGlobal: AllowStorageSenseGlobal이라는 이름의 DWORD 값을 추가하거나 수정합니다. 이 값은 StorageSense 기능의 전역 사용 여부를 제어합니다.
  • /t REG_DWORD: 데이터 유형을 지정합니다. REG_DWORD는 32비트 정수형 값을 의미합니다.
  • /d "0": 이 값의 데이터를 0으로 설정합니다. /d는 지정한 데이터 값을 설정하는 옵션입니다. 이 값이 0으로 설정되므로, 이는 시스템 전체에서 StorageSense 기능이 비활성화됨을 의미합니다.
     ㆍ1 (Enabled): StorageSense가 시스템에서 활성화됩니다. 사용자가 실행 주기를 조정할 수 있습니다.
     ㆍ0 (Disabled): StorageSense가 시스템에서 비활성화됩니다. 사용자는 이 기능을 활성화할 수 없습니다.
  • /f: 강제로 값을 추가하거나 수정합니다. 동일한 값이 이미 존재할 경우, 경고 없이 덮어씁니다.

 

반응형

배치 파일 스크립트 (Windows Batch Script Example)

윈도우10 시작 > Windows 설정 > 시스템 > 저장소
   >>  저장소 센스는 임시 파일이나 휴지통의 콘텐츠 등과 같은 필요하지 않은 파일을 제거함으로써 공간을 자동으로 확보합니다. : 끔  (Off)

@echo off

REM Windows 10 Settings - Disable Storage Sense to Automatically
reg.exe ADD "HKLM\Software\Policies\Microsoft\Windows\StorageSense" /v AllowStorageSenseGlobal /t REG_DWORD /d "0" /f

pause
exit

 

배치 파일 (Batch File) 만들기

  • 메모장 또는 다른 텍스트 편집기를 엽니다.
  • 위의 코드를 복사하여 텍스트 편집기에 붙여넣습니다.
  • 파일을 저장합니다. 예를 들어, Windows_Settings.bat 로 저장합니다. 파일 확장자는 .bat로 지정해야 합니다.
  • 배치 파일을 관리자 권한으로 실행합니다. (배치 파일을 우클릭한 후 "관리자 권한으로 실행"을 선택합니다.)

배치 파일 테스트 영상 (Batch file tested video) 

영상보기 : https://youtu.be/zUNtifYbmp4

 

윈도우 설정 참고 사이트 URL (Reference site URL for Windows settings)

How to Enable or Disable Storage Sense to Automatically Free Up Space in Windows 10

https://www.tenforums.com/tutorials/122318-enable-disable-storage-sense-windows-10-a.html

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\StorageSense

AllowStorageSenseGlobal DWORD

(delete) = Default
0 = Disable
1 = Always enable

 

Allow Storage Sense

https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Policies.StorageSense::SS_AllowStorageSenseGlobal

Registry Hive HKEY_LOCAL_MACHINE
Registry Path Software\Policies\Microsoft\Windows\StorageSense
Value Name AllowStorageSenseGlobal
Value Type REG_DWORD
Enabled Value 1
Disabled Value 0

 

마이크로소프트 지원 URL (Link to Microsoft Support Web Page)

Policy CSP - Storage

https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-storage#allowstoragesenseglobal

 

Storage Policy CSP

Learn more about the Storage Area in Policy CSP.

learn.microsoft.com

 

 

- E N D -

 

www.youtube.com/@XTRM

 

소프트엑스 XTRM

SOFTware unknown X of XTRM 컴퓨터 유지보수 기술 공유 채널입니다.

www.youtube.com

 

<소프트엑스 XTRM 추천영상>

^^*

반응형

댓글