Windows 시스템은 가상 메모리에 페이지 파일(Page file) ( pagefile.sys )을 사용합니다. (pagefile.sys)일종의 추가 RAM 으로 작동합니다. 페이징 파일은 시스템의 성능과 속도를 향상하지만 일부 사용자는 작동 방식을 수정하는 것을 선호(some users prefer to modify) 합니다. 이는 Windows 가 (Windows)Pagefile.sys 에 저장 하는 데이터 를 언제든지 확신할 수 없기 때문 입니다. 페이징 파일은 암호와 같은 민감한 데이터를 보유할 수 있으며 다시 시작한 후에도 시스템에서 삭제되지 않습니다.
여기서 위험은 모든 사용자가 C 드라이브로 이동하여 무제한 액세스 권한을 얻어 이 파일에 액세스할 수 있다는 것입니다. 승인되지 않은 사용자, 서버의 다른 운영 체제 및 네트워크의 다른 장치도 저장 장치에 복사하여 분석할 수 있습니다.
페이징 파일을 잘못 구성하거나 삭제하면 더 큰 위험을 초래할 수 있으므로 Windows 시스템은 페이징 파일을 올바르게 보호합니다. (Windows)그러나 페이징 파일의 데이터를 보호하는 옵션이 있습니다. 이 가이드에서 이러한 옵션을 살펴보겠습니다.
Windows 에서 종료 시 PageFile.sys(Delete PageFile.sys) 백업, 이동(Move) 또는 삭제
컴퓨터 시스템에서 페이징 파일을 명시적으로 삭제하는 대신 이 페이지에서 제공하는 작업 과정을 따를 수 있습니다. 이 가이드에서 다룰 단계는 다음과 같습니다.
- 예비 단계: 파일을 백업(Back) 합니다.
- (Delete)파일 탐색기(File Explorer) 에서 페이징 파일을 삭제 합니다 .
- 대안: 페이징 파일을 다른 드라이브로 이동
- 권장 사항: 시스템을 종료할 때마다 Pagefile.sys 를 삭제하도록 컴퓨터를 설정하십시오.
이러한 절차 중 일부는 숙련된 기술자만 처리해야 합니다. 그러나 기술 경험에 관계없이 누구나 가이드를 따를 수 있도록 세분화하겠습니다.
1] 예비 단계: 파일 백업(Back)
페이징 파일은 중요하고 시스템 성능을 향상시키지만 삭제를 계속할 경우 pagefile.sys 삭제로 인해 문제가 발생하는 경우 파일을 쉽게 복원할 수 있도록 먼저 파일을 백업하는 것이 좋습니다.
Windows 컴퓨터를 백업하는 방법에는 여러 가지가 있습니다. 하드디스크나 DVD(DVD) 와 같은 외부 저장매체를 연결하고 아래의 빠른 방법을 따르세요.
시작(Start) 버튼을 선택하고 제어판(Control Panel) 을 검색합니다 . 제어판을 열고 System and Security > Backup and Restore 으로 이동 합니다. 그런 다음 아래 단계 중 하나를 따르세요.

- 최근에 Windows 버전을 업그레이드했거나 백업을 처음 만드는 경우 백업 설정을(Set up backup) 클릭 하고 마법사의 화면 지침을 따릅니다.
- 과거에 백업을 만든 경우 지금 백업(Back up now) 옵션을 클릭합니다.
- 첫 번째 백업이 아니지만 새 백업을 생성하려는 경우 새 전체 백업 생성(Create new, full backup) 옵션을 선택하고 마법사의 화면 단계를 따릅니다.
2] 파일 탐색기(File Explorer) 에서 페이징 파일 삭제(Delete)
먼저 파일 탐색기(File Explorer) 를 엽니다 . Windows key + E 를 눌러 빠르게 수행할 수 있습니다 .
보기(View) 메뉴를 클릭하고 옵션(Options) 으로 이동합니다 .
보호된 운영 체제 파일 숨기기(권장)(Hide protected operating system files (Recommended)) 확인란의 선택을 취소합니다 .
숨김 파일 및 폴더(Hidden files and folders) 아래에서 숨김 파일 , 폴더 및 드라이브 표시(Show hidden files, folders, and drives) 옵션을 선택하고 확인 버튼(OK) 을 누르십시오.
페이징 파일은 보호된 시스템 파일입니다. 따라서(Hence) 숨겨져 있습니다. 위의 단계를 수행하면 Windows 탐색기(Windows Explorer) 에서 이 파일을 볼 수 있습니다 . 그런 다음 이제 파일을 삭제할 준비가 되었습니다.
This PC > Local Disk (C:) 로 이동 합니다.
여기에서 pagefile.sys(pagefile.sys) 파일 을 찾을 수 있습니다. 이 파일을 마우스 오른쪽 버튼으로 클릭하고 삭제를 누르 십시오(Delete) .
페이지 파일의 크기(the Page file’s size) 로 인해 휴지통(Recycle Bin) 으로 이동하지 않고 완전히 삭제될 가능성이 높습니다 . 그래서 백업 단계가 중요합니다.
Windows 는 이를 (Notice)시스템 파일(System file) 로 분류 합니다 . 이는 컴퓨터의 원활한 작동에 매우 중요하다는 의미입니다. 따라서 시스템에서 삭제할 수 없습니다.
Windows 탐색기(Windows Explorer) 에서 페이징 파일(pagefile.sys)을 볼 수 있지만 삭제하려고 하면 시스템에서 다른 프로그램에서 사용 중이라고 말할 수 있습니다.
2] 대안: 페이징 파일을 다른 드라이브로 이동
시스템에서 페이징 파일을 삭제하는 대신 새 위치에 새 pagefile.sys 파일을 생성하도록 컴퓨터를 설정할 수 있습니다. 이 솔루션은 하드 드라이브의 성능과 일치하거나 최고인 다른 드라이브가 있는 경우에 가장 적합합니다.
Windows key + I 조합을 눌러 설정을 엽니다 .
여기에서 System > About 로 이동합니다 . 그런 다음 관련 설정 (Related settings ) 영역 에서 시스템 정보 (System info ) 링크를 클릭합니다.

왼쪽 창에서 고급 시스템 설정(Advanced system settings) 옵션을 선택합니다 .
고급(Advanced) 탭 으로 전환 하고 성능 (Performance ) 영역 에서 설정(Settings) 버튼을 클릭합니다.

성능 옵션(Performance Options) 창에서 고급 탭을 클릭 하면 가상 (Advanced )메모리(Virtual) 섹션 에 페이징 파일의 크기가 표시됩니다 . 여기 에서 변경(Change) 버튼을 누르십시오.
모든 드라이브의 페이징 파일 크기 자동 관리(Automatically manage paging file size for all drives) 확인란의 선택을 취소 합니다 .
C: [시스템](C: [System] ) 드라이브를 클릭하고 선택한 상태에서 아래로 이동하여 페이징 파일 없음(No paging file) 옵션을 선택합니다. 설정(Set) 버튼을 누르 십시오 .

드라이브로 돌아가서 페이징 파일을 저장할 볼륨을 선택하십시오.
아래로 스크롤 하여 드라이브 의 시스템 관리 크기 를 클릭하고 (System managed size)설정(Set) 버튼을 누르십시오. 마지막으로 프롬프트 에서 예 버튼을 클릭합니다.(Yes )
기본 드라이브에서 페이징 파일을 성공적으로 비활성화했습니다. 그러나 페이징 파일이 비활성화된 상태에서 시스템 오류가 있는 경우 시스템이 더 이상 크래시 덤프를 생성하지 않기 때문에 이 작업을 수행하지 않는 것이 좋습니다.
다음 단계는 페이징 파일을 저장할 드라이브를 선택하는 것입니다. 동일한 화면에서 이 드라이브를 클릭하고 C 드라이브에서 했던 것처럼 페이징 파일 없음(No paging file) 대신 시스템 관리 크기 를 선택합니다.(System managed size)
설정(Set) 버튼을 누르고 적용(Apply) 및 확인(Ok) 을 클릭 하여 설정을 저장하고 창을 닫습니다.
마지막으로 컴퓨터를 다시 시작합니다.
읽기(Read) : Windows에서 가상 메모리 또는 페이지 파일을 재설정 하는 방법
시스템을 종료할 때마다 Pagefile.sys 를 삭제하도록 컴퓨터를 설정하십시오.
페이지 파일이 컴퓨터에 매우 중요하다는 사실을 알고 있으면 이 파일 없이 컴퓨터를 실행하고 싶지 않을 것입니다.
그러나 페이징 파일은 시스템을 다시 시작한 후에도 이월되기 때문에 보안 위험이 있습니다. 더 나은 방법은 시스템이 종료될 때마다 페이징 파일을 삭제하도록 컴퓨터 시스템을 설정하는 것(set your computer system to delete the paging file whenever it shuts down) 입니다.
이러한 방법을 사용하면 컴퓨터를 종료할 때마다 페이징 파일이 삭제되고 다시 시작할 때마다 Windows 에서 새 페이징 파일을 만듭니다.
참고:(NOTE:) 종료할 때마다 페이징 파일을 삭제하고 시작할 때 새 파일을 생성하면 종료 및 부팅 시간이 느려집니다.
When the Clear virtual memory pagefile setting is turned on, when the system shuts down, the computer may take longer to shut down than it usually takes. This behavior occurs because when this policy setting is turned on, the computer must physically write to each page in the pagefile to clear each page. The period of time that it takes for the system to clear the pagefile varies according to the pagefile size, and the disk hardware that is involved.
1] 궁극의 윈도우 트위커

클릭 한 번으로 프리웨어 Ultimate Windows Tweaker 를 다운로드하여 사용하십시오. Customization > File Explorer 아래에 설정이 표시됩니다 .
2] 레지스트리 편집기 사용

Windows key + R 을 눌러 실행 대화(Run) 상자를 엽니다. 실행(Run) 에 Regedit 를 입력 하고 확인(OK) 을 클릭 합니다.
레지스트리 편집기(Registry Editor) 에서 다음 폴더로 이동합니다.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
오른쪽 창에서 ClearPageFileAtShutdown 이라는 DWORD 를 두 번 클릭하고 (DWORD)값 데이터(Value data) 를 1 로 변경합니다 . 확인 버튼을 눌러 변경 사항을 저장합니다 . (OK )
참고: 이 (NOTE: )DWORD 를 찾지 못하면 공백을 마우스 오른쪽 버튼으로 클릭하고 New > DWORD (32-bit) Value 에서 만듭니다. 이름을 ClearPageFileAtShutdown 으로 설정 하고 값 데이터를 1 로 설정 합니다.
레지스트리 편집기(Registry Editor) 를 종료 하고 컴퓨터를 다시 시작하십시오.
3] 그룹 정책 편집기 사용

Windows key + R 조합 을 눌러 실행(Run) 대화 상자를 엽니다 .
실행(Run) 대화 상자 에 gpedit.msc 를 입력 하고 Enter 키를 누릅니다(ENTER) .
그룹 정책 편집기 의 왼쪽 창에서 컴퓨터 구성 을 확장합니다.(Computer Configuration)
컴퓨터 구성(Computer Configuration) 에서 Windows Settings > Security Settings > Local Policies > Security Options 으로 이동 합니다.
오른쪽 창에서 종료: 가상 메모리 페이지 파일 지우기 를 마우스 오른쪽 버튼으로 클릭하고 (Shutdown: Clear virtual memory pagefile)속성(Properties) 을 선택 합니다.
새 창에서 사용(Enabled) 을 선택 하고 마지막으로 적용 (Apply ) 및 확인(OK) 버튼을 눌러 구성을 저장합니다.
다시 말하지만(Again) , 페이징 파일을 삭제하면 컴퓨터에 해로울 수 있음을 아무리 강조해도 지나치지 않습니다. 그러나 합당한 이유가 있는 경우 위의 지침에 따라 올바르게 수행하십시오.
Back up, Move, or Delete PageFile.sys on shutdown in Windows 11/10
Your Wіndows ѕystem uses the Page file (pagefile.sys) for virtual memory. It works as an extra RAM of sorts. The paging file improves your system’s performance and speed, but some users prefer to modify how it works. This is because you can’t be sure of what data Windows saves in Pagefile.sys at any time. The paging file could hold sensitive data such as passwords, and it doesn’t get deleted from your system even after a restart.
The danger here is that any user can access this file by navigating to the C drive and gaining unrestricted access to it. Unauthorized users, other operating systems on your server, and other devices on your network can also copy it out to their storage device and analyze it.
The Windows system rightly protects the paging file because misconfiguring or deleting it can pose a greater risk. However, you have options for protecting your data on the paging file. We’ll explore these options in this guide.
Back up, Move, or Delete PageFile.sys on shutdown in Windows
Instead of explicitly deleting the paging file off your computer system, you can follow the course of action proffered on this page. Here are the phases we’ll cover in this guide:
- Preliminary phase: Back up your files.
- Delete the paging file from File Explorer.
- Alternative: Move the paging file to a different drive
- Recommended: Set your computer to delete Pagefile.sys on every shutdown
Some of these procedures should be handled only by experienced techies. However, I’ll break them down so that anyone can follow the guide, regardless of your technical experience.
1] Preliminary phase: Back up your files
The paging file is crucial and improves your system’s performance, but if you insist on deleting it, I advise that you back up your files first, so that you can easily restore your files if deleting the pagefile.sys causes issues.
There are several ways to back up your Windows computer. Connect an external storage media such as a hard disk or DVD and follow the quick method below.
Select the Start button and search for Control Panel. Open the Control Panel and go to System and Security > Backup and Restore. After this, follow one of the below steps:

- If you recently upgraded your Windows version or it’s your first time making a backup, click on Set up backup and follow the on-screen instructions in the wizard.
- If you’ve made a backup in the past, click the Back up now option.
- If it’s not your first backup, but you want to create a new backup, choose the Create new, full backup option and follow the on-screen steps in the wizard.
2] Delete the paging file from File Explorer
First, open File Explorer. You can do this quickly by pressing the Windows key + E.
Click on the View menu and go to Options.
Unmark the Hide protected operating system files (Recommended) checkbox.
Under Hidden files and folders, select the Show hidden files, folders, and drives option and hit the OK button.
The paging file is a protected system file. Hence, it’s hidden. The steps above enable you to view this file in Windows Explorer. Following that, you’re now ready to delete the file.
Navigate to This PC > Local Disk (C:).
You’ll find the pagefile.sys file here. Right-click on this file and hit Delete.
Due to the Page file’s size, it most likely wouldn’t go to the Recycle Bin but be deleted entirely. That’s why the backing up phase is important.
Notice that Windows classifies it as a System file. Meaning that it’s crucial to the smooth operation of your computer. Therefore, the system may not let you delete it.
You can view the paging file (pagefile.sys) in Windows Explorer, but if you try to delete it, the system may say that another program is using it.
2] Alternative: Move the paging file to a different drive
Instead of deleting the paging file from your system, you can set your computer to create a new pagefile.sys file in a new location. This solution is best suited for cases where you have a different drive that matches or tops the performance of your hard drive.
Press the Windows key + I combination to open Settings.
Here, go to System > About. Next, click on the System info link under the Related settings area.

Select the Advanced system settings option on the left-hand pane.
Switch to the Advanced tab and click on the Settings button under the Performance area.

In the Performance Options window, click on the Advanced tab, and you’ll see the size of your paging file in the Virtual memory section. Hit the Change button here.
Unmark the checkbox for Automatically manage paging file size for all drives.
Click on the C: [System] drive, and with this selected, go down and choose the No paging file option. Hit the Set button.

Go back to the Drives and select the volume to which you want to store the paging file.
Scroll down, click on the System managed size for the drive, and hit the Set button. Finally, click on the Yes button on the prompt.
You have successfully disabled the paging file on your primary drive. However, I don’t advise that you do this because, with the paging file disabled, the system will no longer create crash dumps if there’s a system error.
The next step is to choose the drive on which you wish to store the paging file. From this same screen, click on this drive and select System managed size instead of No paging file as we did for drive C.
Hit the Set button and click Apply and Ok to close save your settings and close the window.
Finally, restart your machine.
Read: How to reset Virtual Memory or Page File in Windows
Set your computer to delete Pagefile.sys on every shutdown
Knowing that the page file is vital to your machine, you don’t want to run your computer without it.
However, the paging file poses a security risk because it’s carried over even after you restart your machine. A better way is to set your computer system to delete the paging file whenever it shuts down.
With these methods, your computer deletes the paging file whenever you shut it down, and on each restart, Windows creates a fresh paging file.
NOTE: Deleting the paging file on every shutdown and creating a new one on startup will slow down your shutdown and booting times.
When the Clear virtual memory pagefile setting is turned on, when the system shuts down, the computer may take longer to shut down than it usually takes. This behavior occurs because when this policy setting is turned on, the computer must physically write to each page in the pagefile to clear each page. The period of time that it takes for the system to clear the pagefile varies according to the pagefile size, and the disk hardware that is involved.
1] Ultimate Windows Tweaker

Download and use our freeware Ultimate Windows Tweaker to do so with a click. You will see the setting under Customization > File Explorer.
2] Using the Registry Editor

Press the Windows key + R to open the Run dialog box. In Run, type Regedit and click OK.
In the Registry Editor, navigate to the following folder:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
On the right-hand pane, double-click on the DWORD named ClearPageFileAtShutdown and change the Value data to 1. Hit the OK button to save the changes.
NOTE: If you don’t find this DWORD, right-click on the white space and create it from New > DWORD (32-bit) Value. Set the name to ClearPageFileAtShutdown and the Value data to 1.
Exit Registry Editor and restart your computer.
3] Using Group Policy Editor

Open the Run dialog box by pressing the Windows key + R combination.
Input gpedit.msc in the Run dialog box and hit ENTER.
In the Group Policy Editor, expand Computer Configuration on the left-hand pane.
Under Computer Configuration, go to Windows Settings > Security Settings > Local Policies > Security Options.
From the right-hand pane, right-click on Shutdown: Clear virtual memory pagefile and select Properties.
Choose Enabled from the new window and finally hit the Apply and OK buttons to save the configuration.
Again, I can’t overemphasize that deleting the paging file can be detrimental to your computer. However, if you have good reasons to do so, do it properly by following the above guide.