Back to page · View history on Github

📄 posts/solution-for-persisting-windows-created.poly.pm
#lang pollen

◊(define-meta title "Solution for persisting ‘Windows created a temporary paging file on your computer’ error")
◊(define-meta published "2011-08-18")
◊(define-meta topics "Windows problems,virtual memory")

Solution for persisting “Windows created a temporary paging file on your computer” error

My Windows 7 laptop began displaying a notification/error every time I logged in:

◊blockquote{
◊code{Windows created a temporary paging file on your computer because of a problem that  occured with your paging file configuration when you started your computer. The total paging  file size for all disk drives may be somewhat larger than the size you specified}
}

After clicking OK, it would open the virtual memory settings without any explanation of what you were supposed to check or do there.

This evidently happens because ◊code{pagefile.sys}, the file that Windows uses for virtual memory, has become corrupted in some way.

◊link["http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/windows-7-virtual-memory-keeps-resetting-on/e7ba857a-ba74-4978-9ea7-0c929f75a19d"]{This Microsoft Answers article} recommends running a system file check. Here’s ◊link["http://support.microsoft.com/kb/936212/en-us"]{how to run an SFC}. This did not solve the problem for me, but it is something you should try first.

Here’s how I cleared it up:

◊ol{
◊item{Log in under a local Administrator account. (Do this after each restart in these instructions as well.)}
◊item{If it’s not already open, open the virtual memory settings by rich-clicking on Computer, → ◊code{Properties} → ◊code{Advanced System Settings} → click the ◊code{Advanced} tab → Under Performance, click ◊code{Settings}, go to ◊code{Advanced} tab, finally under Virtual Memory section click the ◊code{Change} button.}
◊item{Uncheck the ◊code{Autmatically manage paging file size for all drives} checkbox.}
◊item{Set a “Custom size” for the paging file on the C drive: 0MB initial, 0MB maximum.}
◊item{Click OK, close all dialog boxes, and restart your computer.}
◊item{After logging in again, delete the file ◊code{C:\pagefile.sys}

◊ol{
◊item{To do this, you may need to change your folder settings so you can see it first. Open a window of your C: drive and click ◊code{Organize} at the top, then ◊code{Folder and Search Options}}
◊item{Click the ◊code{View} tab, and make sure ◊code{Show hidden files, folders and drives} is turned on, and that ◊code{Hide protected system files} is ◊strong{not} checked.}
◊item{Click OK and go back to your C: drive, find ◊code{pagefile.sys} and delete it.}
}}
◊item{Now go back to the virtual memory settings (see step 2 above) and set the paging file for the C: drive to ◊code{System managed size}, and then make sure the ◊code{Automatically manage paging file size for all drives} checkbox is ◊strong{checked}.}
◊item{Click OK, close all dialog boxes, and restart your computer.}
}

◊strong{A summary of what this does:} By temporarily turning off virtual memory, you allow yourself to delete the (now-corrupt) paging file. Then when you re-enable virtual memory, Windows automatically builds a new paging file from scratch, and ◊emph{voilà}, problem solved.

I was helped by ◊link["http://www.geekstogo.com/forum/topic/41071-paging-file-is-gone%3B-correspondng-error-at-startup/"]{this thread at geekstogo.com} although I did not find it necessary to do any editing of the Registry or any of that jazz. Try the simplest solution first, I always say.

◊comment[#:author "Dave"
         #:datetime "January 10, 2012"
         #:authorlink "https://www.blogger.com/profile/17498737960581332989"]{Thank you, That worked for me, thx for taking the time to make a webpage for this, awesome!}

◊comment[#:author "sam"
         #:datetime "May 23, 2012"
         #:authorlink "https://www.blogger.com/profile/05266122372721852797"]{cant find pagefile.sys}

◊comment[#:author "Aygo Blogs"
         #:datetime "July 17, 2012"
         #:authorlink "https://www.blogger.com/profile/14933439453417472703"]{It dosen’t work.
When I delete pagefile.sys it said
This action can’t be completed because the file was open in another program}

◊comment[#:author "Eddie"
         #:datetime "August 07, 2012"
         #:authorlink "https://www.blogger.com/profile/04802276480486889180"]{YES! Big thanks to you as this was driving me Nucking Futs!! Followed each step as described, and it killed the “Windows has created…” crapola, and restored what’s left of any remaining sanity… sincere appreciation.}

◊comment[#:author "Raul Junior"
         #:datetime "October 11, 2012"
         #:authorlink "https://www.blogger.com/profile/15061192096353164554"]{Aygo,

I had the same problem, and I was able to delete the file by restarting on Safe Mode. Hope it helps!}

◊comment[#:author "schilbach"
         #:datetime "April 09, 2013"
         #:authorlink "http://schilbach.wordpress.com/"]{Thanks for this…more help than MS documentation…

Came across this whilst trying to free more space which people may find helpful - turning off hibernation:

◊link["http://www.howtogeek.com/howto/15140/what-is-hiberfil.sys-and-how-do-i-delete-it/"]}

◊comment[#:author "Prof. Sancho Panza"
         #:datetime "May 22, 2013"
         #:authorlink "https://www.blogger.com/profile/11688178243832561724"]{Thank you for this! I’d tried several other solutions, including both the SFC and the “sc config afs start= disabled” command, and none of them worked. This one did - and better still, I actually understood what I was doing!}

◊comment[#:author "naveenvarshan"
         #:datetime "June 25, 2013"
         #:authorlink "http://naveenvarshan.wordpress.com/"]{Even if I start in safe mode, I am not able to delete it. Please help}

◊comment[#:author "Gabriel Gunawan"
         #:datetime "October 17, 2013"
         #:authorlink "https://www.blogger.com/profile/14020288305534476060"]{Look carefully that you unchecked “Hide protected operating system files”. Couldn’t find it the first time, but then I realized I’ve overlooked this option.}

◊comment[#:author "SiKuple"
         #:datetime "October 27, 2013"
         #:authorlink "https://www.blogger.com/profile/11851475628690360716"]{so do i, Even if I start in safe mode, I am not able to delete it. Please help}

◊comment[#:author "Joel A."
         #:datetime "October 28, 2013"
         #:authorlink "https://www.blogger.com/profile/13646393468637062885"]{If you can’t delete pagefile.sys (gives “in use by another program” error), make sure you’re running Explorer with Admin priviledges: close your Explorer window, then open Start menu, type “explorer” in search, SHIFT-right-click on the Windows Explorer in the results, and click “Run as Administrator”.}

◊comment[#:author "SiKuple"
         #:datetime "October 31, 2013"
         #:authorlink "https://www.blogger.com/profile/11851475628690360716"]{still not work, i’ve closed the explorer first, and then i open windows and typed “explorer” then i press shift with right klicked at " Windows Explorer" and “RUN AS ADMIN” then find the pagefile.sys delete and then… ZONK, STILL use by program}

◊comment[#:author "SiKuple"
         #:datetime "October 31, 2013"
         #:authorlink "https://www.blogger.com/profile/11851475628690360716"]{even i choose windows explorer and RUN it as ADMIN i still cant delete pagefile.sys}

◊comment[#:author "J.Balboa"
         #:datetime "March 30, 2014"
         #:authorlink "https://www.blogger.com/profile/03316507853791461184"]{I cannot delete the pagifile.sys either. I am always the admin on my computer, moreover, I still went ahead and SHIFT+right-clicked the explorer and I don’t get that “Run as admin…” option. This file is indestructible.

What else do you recommend? Is there a program running in the background (a “process” in the “Task Manager”) that I should kill first?}

◊comment[#:author "mizzuhh"
         #:datetime "August 27, 2014"
         #:authorlink "https://www.blogger.com/profile/04561100263697843549"]{maraming salamat, that worked

–mza.}

◊comment[#:author "Tammy"
         #:datetime "September 13, 2014"
         #:authorlink "https://www.blogger.com/profile/09487479834848996888"]{I am getting this problem too. I’ve followed ALL of the instructions here, but when I go back and click the automatically manage box and reboot, the system doesn’t create a paging file, it just shows everything grayed out and it says no paging file. Ugh and Grrrrr}

◊comment[#:author "Johan Kotze"
         #:datetime "October 27, 2015"
         #:authorlink "https://www.blogger.com/profile/14621006434624043591"]{Good day just to add to this…

If you running an HyperV Gen1 VM and getting this message please check that the VHD is not mounted as an ISCSI drive or else the problem will also persist. it needs to be mounted as an Traditional hard drive for the OS to write the Pagefile.}

◊comment[#:author "adrian no"
         #:datetime "January 07, 2016"
         #:authorlink "https://www.blogger.com/profile/17277708789116383763"]{Yep. works fine.. Thanks}