I'd like to be able to run a script to check on, and change if necessary, the
size of the page file. Does anyone have, or know of, where I can get such a
script? And which "version" is best? (Jscript, vbscript, wsh, etc.)

I'd like something quick and simple for when I service a PC, regardless of
whether or not I change the amount of memory in it.

Thanks in advance,

Tom

Re: changing Page File size by dotNuttah

dotNuttah
Sat Mar 18 10:08:47 CST 2006

Tcs wrote:
> I'd like to be able to run a script to check on, and change if
> necessary, the size of the page file. Does anyone have, or know of,
> where I can get such a script? And which "version" is best?
> (Jscript, vbscript, wsh, etc.)
>
> I'd like something quick and simple for when I service a PC,
> regardless of whether or not I change the amount of memory in it.
>
> Thanks in advance,
>
> Tom

WMI might do it for you.

There's been a whole system created for monitoring Windows and making
changes using scripts (language of your choice).

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/ht
ml/anch_wmi.asp

Have a read of the two-part primer to see what it's all about.

The page file is defined as a WMI class..

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/
win32_pagefile.asp

but it looks like you'll only be able to discover the file size, not change
it.



Re: changing Page File size by /\\/\\o\\/\\/

/\\/\\o\\/\\/
Sat Mar 18 14:10:54 CST 2006

dotNuttah wrote:
> Tcs wrote:
>> I'd like to be able to run a script to check on, and change if
>> necessary, the size of the page file. Does anyone have, or know of,
>> where I can get such a script? And which "version" is best?
>> (Jscript, vbscript, wsh, etc.)
>>
>> I'd like something quick and simple for when I service a PC,
>> regardless of whether or not I change the amount of memory in it.
>>
>> Thanks in advance,
>>
>> Tom
>
> WMI might do it for you.
>
> There's been a whole system created for monitoring Windows and making
> changes using scripts (language of your choice).
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/ht
> ml/anch_wmi.asp
>
> Have a read of the two-part primer to see what it's all about.
>
> The page file is defined as a WMI class..
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/
> win32_pagefile.asp
>
> but it looks like you'll only be able to discover the file size, not change
> it.
>
>

you can use Win32_PageFileSetting to set the InitialSize and
MaximumSize

gr /\/\o\/\/