Hello
Script to configure virtual memory page file size (PowerShell)
Where could I find the Set-OSCVirtualMemory and over powershell commands? all previous link send me to sample page but nothing find it..
Thanks,
Dom
Hello
Script to configure virtual memory page file size (PowerShell)
Where could I find the Set-OSCVirtualMemory and over powershell commands? all previous link send me to sample page but nothing find it..
Thanks,
Dom
Here's one place: AdjustVirtualMemoryPagingFileSize.psm1
. . . and another: AdjustVirtualMemoryPagingFileSize.zip
There are probably more . . . look for the module name, not the cmdlet name.
Be cautious when running scripts from untrusted sources!
Hello
I was able to download the psm1 file but not the zip it is giving an error cannot be download!!!
Thanks,
Dom
You can import the module yourself. No need for the zip file -- it probably just holds the psm1 file. :-)
Here's an example of how to do that.
10006834
But to just import the module, all you need is line #13 of that script (with the right directory name).
Hello @DominiqueDUCHEMIN,
I am using the next:
To set automatic (let Windows manage the pagefile):
$pagefile = Get-WmiObject Win32_ComputerSystem -EnableAllPrivileges
$pagefile.AutomaticManagedPagefile = $false
$pagefile.put() | Out-Null
To specific the size:
$pagefileset = Get-WmiObject Win32_pagefilesetting
$pagefileset.InitialSize = 1024
$pagefileset.MaximumSize = 2048
$pagefileset.Put() | Out-Null
You can see other methods in this thread: https://social.technet.microsoft.com/Forums/en-US/82fd5a8c-4a6f-4855-95c7-965f5b45c95c/adjust-virtual-memory-paging-file-size?forum=mdt
Hope this helps,
Best regards,
17 people are following this question.