About pagefile.sys

Does Windows use the content of pagefile.sys file that was kept last time running ?

Yes.

On 3/28/19, weilin_jiang wrote:
> OSR https://community.osr.com/
> weilin_jiang started a new discussion: About pagefile.sys
>
> Does Windows use the content of pagefile.sys file that was kept last time
> running ?
>
> –
> Reply to this email directly or follow the link below to check it out:
> https://community.osr.com/discussion/291201/about-pagefile-sys
>
> Check it out:
> https://community.osr.com/discussion/291201/about-pagefile-sys
>

Yes.
Hi Dejan,
Do you mean after Windows restarts, it will also use the contents of pagefile.sys left last time??

It almost always does.
To check if a memory dump was left there.

On 3/28/19, weilin_jiang wrote:
> OSR https://community.osr.com/
> weilin_jiang commented on About pagefile.sys
>
>> Yes.
>
> Hi Dejan,
>
> Do you mean after Windows restarts, it will also use the contents of
> pagefile.sys left last time??
>
> –
> Reply to this email directly or follow the link below to check it out:
> https://community.osr.com/discussion/comment/293217#Comment_293217
>
> Check it out:
> https://community.osr.com/discussion/comment/293217#Comment_293217
>

@Dejan_Maksimovic said:
It almost always does.
To check if a memory dump was left there.

Oh , yes.
In addition to this situation,
Will it uses the content if there is not memory dump?

Not that I know of.

> @Dejan_Maksimovic said:
>
> It almost always does.
>
> To check if a memory dump was left there.

Oh , yes.

In addition to this situation,

Will it uses the content if there is not memory dump?

weilin_jiang wrote:

In addition to this situation,

Will it uses the content if there is not memory dump?

Why do you ask?  I’m not just being nosy; I suspect that your question
is coming from a line of thinking that might not lead to a Good Place,
so I’d like you to share the train of thought that led here.

It definitely does not use it. A number of years ago, I wrote a pair of drivers for a virtualization system that had its files remotely, but wanted to use a local disk for the pagefile.sys It is still in use, and does not have a problem swapping to a different machine where the old pagefile will not be accessible.

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

In fact, you can configure Windows to wipe the pagefile after each reboot for security reasons; at the expense of a little extra time in the boot process.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ClearPageFileAtShutdown (DWORD)

Valid values are 0 and 1. So, no, the following boot is not dependent on the pagefile contents

In fact, you can configure Windows to run WITHOUT a page file entirely…

Peter