tag:blogger.com,1999:blog-5976686513564131325.post1696760344910876194..comments2024-03-17T15:34:05.492-06:00Comments on MPECS Inc. Blog: Server Core - Move that Swap/Page File - WMI Error Code = 0x80041017Philip Elder Cluster MVPhttp://www.blogger.com/profile/06082028960643490292noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-5976686513564131325.post-48046385708390433152012-09-06T21:02:05.519-06:002012-09-06T21:02:05.519-06:00This is what I ended up using:
wmic computersyste...This is what I ended up using:<br /><br />wmic computersystem where name="%computername%" set AutomaticManagedPageFile=false<br />wmic pagefileset create name="P:\\pagefile.sys",InitialSize=3434,MaximumSize=3434<br />wmic pagefileset where name="C:\\pagefile.sys" deleteAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5976686513564131325.post-51240219619597844892011-10-14T11:50:36.867-06:002011-10-14T11:50:36.867-06:00A.,
There is no gotcha that we know of.
We are ...A.,<br /><br />There is no gotcha that we know of. <br /><br />We are talking about moving the swap file on the Hyper-V host which would normally be deployed using physical disks configured in RAID arrays.<br /><br />PhilipPhilip Elder Cluster MVPhttps://www.blogger.com/profile/06082028960643490292noreply@blogger.comtag:blogger.com,1999:blog-5976686513564131325.post-36344753410233047852011-10-13T19:49:49.832-06:002011-10-13T19:49:49.832-06:00Found an interesting gotcha
http://support.micros...Found an interesting gotcha<br /><br />http://support.microsoft.com/kb/979386<br /><br />Running Hyper-V and trying to move the pagefile to a SCSI attached VHD will not work as SCSI isn't initialized when windows tries to setup the pagefile.<br /><br />Other than that... a great articleAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5976686513564131325.post-89932928364168268212011-02-10T06:37:42.745-07:002011-02-10T06:37:42.745-07:00Your first pagefileset command uses one backslash ...Your first pagefileset command uses one backslash and the next two pagefilesets use two backslashes. Is this really correct?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5976686513564131325.post-82566043400554914892010-10-20T20:20:56.786-06:002010-10-20T20:20:56.786-06:00Hi,
at least on Windows 2008 R2 x64 you have to a...Hi,<br /><br />at least on Windows 2008 R2 x64 you have to add another command.<br /><br />wmic.exe computersystem where name="WIN-WHAT-O-EVER" set AutomaticManagedPagefile=False<br />wmic.exe pagefileset create name="E:\pagefile.sys"<br />wmic.exe pagefileset where name="E:\\pagefile.sys" set InitialSize=2047,MaximumSize=4095<br />wmic.exe pagefileset where name="C:\\pagefile.sys" delete<br /><br />Without the create command I just get the famous "No Instance(s)" error.<br /><br />Cheers,<br />ChristophUnknownhttps://www.blogger.com/profile/04877798994026265066noreply@blogger.comtag:blogger.com,1999:blog-5976686513564131325.post-80335013770919605912009-12-01T22:13:53.130-07:002009-12-01T22:13:53.130-07:00A,
Thank you for the update. That first command t...A,<br /><br />Thank you for the update. That first command to create the file on the swap partition was definitely missing in our instructions here.<br /><br />PhilipPhilip Elder Cluster MVPhttps://www.blogger.com/profile/06082028960643490292noreply@blogger.comtag:blogger.com,1999:blog-5976686513564131325.post-35888931568904094802009-11-24T22:01:29.649-07:002009-11-24T22:01:29.649-07:00Due to the 4,096 character limit I can only manage...Due to the 4,096 character limit I can only manage to post this. I'm using Server 2008 R2 x64Server Core.<br /><br />http://blogs.dirteam.com/blogs/sanderberkouwer/Default.aspx?p=10<br /><br />Changing page file location<br />Another management option is to move the page file to another partition (or volume). Moving a page file involves deleting an existing page file and making a new one somewhere else. I used the following set of commands to move the Page File from the C: drive to the D: drive on my test system. <br /><br />diskpart.exe<br /><br />DISKPART> select disk 0 <br />DISKPART> select partition 1 <br />DISKPART> shrink desired=2280 <br />DISKPART> create partition primary <br />DISKPART> select partition 2 <br />DISKPART> format fs=ntfs label="Swap" <br />DISKPART> assign letter=E <br />DISKPART> exit<br /><br />wmic.exe pagefileset create name="E:\pagefile.sys" <br />wmic.exe pagefileset where name="E:\\pagefile.sys" set InitialSize=2048,MaximumSize=2048 <br />wmic.exe pagefileset where name="C:\\pagefile.sys" delete<br /><br />You can replace values to suit your situation. Your settings will take effect after a reboot of the system.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5976686513564131325.post-91471573389854579342009-03-11T14:13:00.000-06:002009-03-11T14:13:00.000-06:00Andy,attrib -h -s on the C:\pagefile.sysRename the...Andy,<BR/><BR/>attrib -h -s on the C:\pagefile.sys<BR/><BR/>Rename the file to pagefile.old.<BR/><BR/>If that works, then you can safely delete it as the OS is no longer using it.<BR/><BR/>PhilipPhilip Elder Cluster MVPhttps://www.blogger.com/profile/06082028960643490292noreply@blogger.comtag:blogger.com,1999:blog-5976686513564131325.post-51008220406329942082009-03-11T11:13:00.000-06:002009-03-11T11:13:00.000-06:00Hello.Yes, there is a pagefile on the c drive and ...Hello.<BR/><BR/>Yes, there is a pagefile on the c drive and a pagefile on the z drive.<BR/><BR/>AndyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5976686513564131325.post-91226490857453019842009-03-11T10:14:00.000-06:002009-03-11T10:14:00.000-06:00Andy,When you do an attrib *.* on the swap file pa...Andy,<BR/><BR/>When you do an attrib *.* on the swap file partition do you see the pagefile.sys there?<BR/><BR/>PhilipPhilip Elder Cluster MVPhttps://www.blogger.com/profile/06082028960643490292noreply@blogger.comtag:blogger.com,1999:blog-5976686513564131325.post-28279498338360928092009-03-11T09:18:00.000-06:002009-03-11T09:18:00.000-06:00Hello.I have followed your instructions and everyt...Hello.<BR/><BR/>I have followed your instructions and everything appreasrs to be as expected. Except :-<BR/><BR/>after a reboot if I rung the pagefile command (instead of pagefileset) the fagefile appears to still be on the c drive.<BR/><BR/>Andy ideas?<BR/><BR/>Thanks in advance<BR/><BR/>AndyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5976686513564131325.post-66494615076754874402009-01-14T21:11:00.000-07:002009-01-14T21:11:00.000-07:00Dave,They are in MB. The last example was to set a...Dave,<BR/><BR/>They are in MB. The last example was to set a 2.5GB (2500) to 10GB (10240) page file.<BR/><BR/>PhilipPhilip Elder Cluster MVPhttps://www.blogger.com/profile/06082028960643490292noreply@blogger.comtag:blogger.com,1999:blog-5976686513564131325.post-24016216614384800732009-01-14T20:00:00.000-07:002009-01-14T20:00:00.000-07:00Are those sizes bytes or MB?Are those sizes bytes or MB?Dave A-Whttps://www.blogger.com/profile/09500214479667584815noreply@blogger.comtag:blogger.com,1999:blog-5976686513564131325.post-30487599191833553522008-11-13T15:32:00.000-07:002008-11-13T15:32:00.000-07:00Exactly what I was looking for after struggling wi...Exactly what I was looking for after struggling with Code = 0x80041017 Error message.<BR/><BR/>Great work. ThanxAnonymousnoreply@blogger.com