Jump to content

How to set VIRTUAL MEMORY page file size as system managed size?


Kingskawn
 Share

Recommended Posts

Hi guys,

I want to set virtual memory page file size option as "system managed size" through whatever script.

I have WIM images (made with SCCM) and already installed XP machines that have pagefile set to 2086mb and I want it to set to "System Managed Size".

Is this possible?

<Edit>(posts merged by Moderator)

I already found something but only works for the current user:

@echo off

attrib -H "%SYSTEMDRIVE%Documents and SettingsDefault UserNTUSER.DAT"
copy "%SYSTEMDRIVE%Documents and SettingsDefault UserNTUSER.DAT" "%SYSTEMDRIVE%Documents and SettingsDefault UserNTUSER.DAT.BAK"
attrib +H "%SYSTEMDRIVE%Documents and SettingsDefault UserNTUSER.DAT"
attrib +H "%SYSTEMDRIVE%Documents and SettingsDefault UserNTUSER.DAT.BAK"

REG LOAD HKEY_USERS.Default_User "%SYSTEMDRIVE%Documents and SettingsDefault UserNTUSER.DAT"
REGEDIT /S regional_uk.reg
REG UNLOAD HKEY_USERS.Default_User

EXIT

It comes from http://www.msfn.org/board/applying-current...ers-t16626.html

What it is supposed to do is copying all registry to default user which is the base user everybody begins with it.

And the "regional_uk.reg" in the same folder is this;

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USERControl PanelInternational]
"iCountry"="44"
"iCurrDigits"="2"
"iCurrency"="1"
"iDate"="1"
"iDigits"="2"
"iLZero"="1"
"iMeasure"="0"
"iNegCurr"="5"
"iTime"="1"
"iTLZero"="1"
"Locale"="00000809"
"s1159"=""
"s2359"=""
"sCountry"="United Kingdom"
"sCurrency"="€"
"sDate"="/"
"sDecimal"="."
"sLanguage"="ENG"
"sList"=","
"sLongDate"="dd MMMM yyyy"
"sShortDate"="dd/MM/yyyy"
"sThousand"="."
"sTime"=":"
"sTimeFormat"="HH:mm:ss"
"iTimePrefix"="1"
"sMonDecimalSep"="."
"sMonThousandSep"="."
"iNegNumber"="1"
"sNativeDigits"="0123456789"
"NumShape"="1"
"iCalendarType"="1"
"iFirstDayOfWeek"="0"
"iFirstWeekOfYear"="0"
"sGrouping"="3;0"
"sMonGrouping"="3;0"
"sPositiveSign"=""
"sNegativeSign"="-"

[HKEY_CURRENT_USERControl PanelInternationalGeo]
"Nation"="21"

[HKEY_CURRENT_USERKeyboard Layout]

[HKEY_CURRENT_USERKeyboard LayoutIMEtoggle]

[HKEY_CURRENT_USERKeyboard LayoutIMEtogglescancode]

[HKEY_CURRENT_USERKeyboard LayoutPreload]
"1"="00000809"

[HKEY_CURRENT_USERKeyboard LayoutSubstitutes]
"00000809"="00000813"

[HKEY_CURRENT_USERKeyboard LayoutToggle]
"Hotkey"="1"
"Language Hotkey"="3"
"Layout Hotkey"="3"

Edited by Yzöwl
Link to comment
Share on other sites


This is a regtweak to DISABLE the pagefile:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management]
"WriteWatch"=dword:00000001
"ClearPageFileAtShutdown"=dword:00000000
"DisablePagingExecutive"=dword:00000001
"LargeSystemCache"=dword:00000000
"NonPagedPoolQuota"=dword:00000000
"NonPagedPoolSize"=dword:00000000
"PagedPoolQuota"=dword:00000000
"PagedPoolSize"=dword:00000000
"SecondLevelDataCache"=dword:00000000
"PagingFiles"=hex(7):00,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"WriteWatch"=dword:00000001
"ClearPageFileAtShutdown"=dword:00000000
"DisablePagingExecutive"=dword:00000001
"LargeSystemCache"=dword:00000000
"NonPagedPoolQuota"=dword:00000000
"NonPagedPoolSize"=dword:00000000
"PagedPoolQuota"=dword:00000000
"PagedPoolSize"=dword:00000000
"SecondLevelDataCache"=dword:00000000
"PagingFiles"=hex(7):00,00,00,00

So you got to setup a PC with your wanted settings, export this settings

and import this regfile to the other machines - should work.

Link to comment
Share on other sites

That is to set it to 'no paging file' but I want it to set System Managed. I'll try to extract it from registry when I set it to system managed manually
Set your template machine to "System Managed", and then export the "Paging Files" value under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management - this will contain the "System Managed" setting as a hex blob. There's no API or script to set the system managed size, at least not one that's public. I only know of ways to set the paging file size min and max via WMI and powershell.
Link to comment
Share on other sites

This is a regtweak to DISABLE the pagefile:

.........................

So you got to setup a PC with your wanted settings, export this settings

and import this regfile to the other machines - should work.

That`s exactly what I said before.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...