Error Creating Pagefile Value Out Of Range
(עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語) HomeWindows Server 2012Windows Server 2008 R2Windows Server 2003LibraryForums Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: Disabled automatic pagefile management, now have pagefile on every volume Windows Server > Server Core Question 0 Sign in to vote Hi,On my test server I turned off automatic pagefile management using the wmic command below wmic computersystem where name=”
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > https://social.technet.microsoft.com/Forums/windowsserver/en-US/46acf090-1da0-42b2-8a37-5628d7fc8068/disabled-automatic-pagefile-management-now-have-pagefile-on-every-volume?forum=winservercore Reducing size of page file on Hyper-V 2012 core Want to Advertise Here? Solved Reducing size of page file on Hyper-V 2012 core Posted on 2015-01-14 Windows Server 2012 MS Server OS Hyper-V 2 Verified Solutions 11 Comments 517 Views Last Modified: 2015-04-08 Hi Experts, need to reduce https://www.experts-exchange.com/questions/28596944/Reducing-size-of-page-file-on-Hyper-V-2012-core.html page file size on Hyper-V hosts in a cluster. Have moved all VMs to one host and trying to run the following which completes successfully: PS C:\> wmic computersystem set AutomaticManagedPagefile=false Updating property(s) of '\\VMHOST\ROOT\CIMV2:Win32_ComputerSystem.Name="VMHOST"' Property(s) update successful. But when I try to run the following I get the error message below: PS C:\> wmic pagefileset where name=”C:\\pagefile.sys” set InitialSize=1024,MaximumSize=3096 Invalid format. Hint:
am using a VHD with native boot. Therefore, I copy host.vhdx to the physical drive and use bcdboot to create a boot entry. This causes the host.vhdx file to have the drive letter http://www.networksteve.com/forum/topic.php/Pagefile_settings/?TopicId=94264&Posts=13 C: on boot, and the physical disk has drive letter D: Basically, what I need to be able to do is set pagefile settings for drive D: Win32_PagefileSetting sees and allows me to set the min/max pagefile size on C:. But it does not see D: I can see D:\pagefile.sys with Win32_PagefileUsage, but that does not let me set any values. If I go in through the GUI, I can error creating set min/max on both C: and D:, but I have not been able to figure out how to see D: so I can set values via Win32_PagefileSetting. I need to set D: because Windows is looking for pagefile.sys on this drive during the boot process before it has loaded host.vhdx. Because it was automanaged, now thatI turned off automanaged, I get a message every time I log in telling me that error creating pagefile Windows has changed my pagefile settings. Here is the code that works fine for setting the value on C: What I need is some way to set the values for D: before I reboot the system to have all the changes take effect, just like what would happen if I were using the GUI. I just can't figure out how to get to D: I don't think this would be an issue if I were not using native VHD boot. $computerSystem = Get-WmiObject -Class Win32_ComputerSystem -EnableAllPrivileges $computerSystem.AutomaticManagedPagefile = $false $computerSystem.Put() | Out-Null $pageFileSetting = Get-WmiObject -Class Win32_PageFileSetting $pageFileSetting.InitialSize = 1024 $pageFileSetting.MaximumSize = 4096 $pageFileSetting.Put() | Out-Null After I use the GUI to set min/max for both C: and D: and reboot, I can then see both C:pagefile.sys and D:pagefile.sys with Win32_PagefileSetting. So if I can use the GUI to do this, it seems like I should be able to use PowerShell/WMI, but I can't figure out what I need to do to get to D: October 12th, 2015 4:54pm Hi, Have you tried setting the Name property to specifically point to D:? https://msdn.microsoft.com/en-us/library/aa394245%28v=vs.85%29.aspx Free Windows Admin Tool Kit Click here and download it now October 12th, 2015 7:10pm Unless you're going to make it better, don't re-invent the wheel:https://gallery.technet.microsoft.com/scriptcenter/Script-to