Kingskawn Posted September 23, 2009 Posted September 23, 2009 (edited) 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 offattrib -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.regREG UNLOAD HKEY_USERS.Default_UserEXITIt comes from http://www.msfn.org/board/applying-current...ers-t16626.htmlWhat 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 September 25, 2009 by Yzöwl
g-force Posted October 1, 2009 Posted October 1, 2009 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,00So you got to setup a PC with your wanted settings, export this settingsand import this regfile to the other machines - should work.
Kingskawn Posted October 1, 2009 Author Posted October 1, 2009 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
cluberti Posted October 1, 2009 Posted October 1, 2009 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 manuallySet 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.
g-force Posted October 8, 2009 Posted October 8, 2009 This is a regtweak to DISABLE the pagefile:.........................So you got to setup a PC with your wanted settings, export this settingsand import this regfile to the other machines - should work.That`s exactly what I said before.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now