You can script the placement of the Windows page file in your SCCM Task Sequence. Sure you could use the good old wmic pagefileset but we’re in 2014, Powershell is your new friend!
My clients needed a script that :
I used a Powershell module found here.
My Script then uses a function of this modules to fits my needs. Save this script in a .ps1 file.
#Reads the physical memory and multiplies it by 1.5
$PageFileSizeMB = [Math]::Truncate(((Get-WmiObject Win32_ComputerSystem).TotalPhysicalMemory) / 1MB) * 1.5
#Sets a Page File of 1.5 * Installed Physical Memory on D: drive
Set-OSCVirtualMemory -InitialSize $PageFileSizeMB -MaximumSize $PageFileSizeMB -DriveLetter “D:”
#Disable page file on C: drive
Set-OSCVirtualMemory -None -DriveLetter “C:”
#–end—
**You can change the values for the drives and the size of the page file.
For the SCCM part :
Verify in Windows once the TS completes. You SCCM Task Sequence Page File Location should be changed
Please fill out the form, and one of our representatives will contact you in Less Than 24 Hours. We are open from Monday to Friday.
Thank you for subscribing to our newsletter or requesting a quote. You will receive our next month's newsletter. If you have requested a quote, we will get in touch with you as soon as possible.
Something went wrong!
Thank for your reply!