Last active
August 29, 2015 13:58
-
-
Save DexterPOSH/10006844 to your computer and use it in GitHub Desktop.
Lets the System manage the Page File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region get Script directory | |
function Get-ScriptDirectory | |
{ | |
$Invocation = (Get-Variable MyInvocation -Scope 1).Value | |
Split-Path $Invocation.MyCommand.Path | |
} | |
$scriptdir = Get-ScriptDirectory | |
#endregion | |
#region Let the System manage the Virtual Memory | |
Add-Content -Value $scriptdir -Path "C:\temp\Applog.log" | |
Import-Module "$scriptdir\AdjustVirtualMemoryPagingFileSize.psm1" | |
Add-Content -Value "Loaded the Module " -Path "C:\temp\Applog.log" | |
Set-OSCVirtualMemory -SystemManagedSize -DriveLetter "C:" | Add-Content -Path "C:\temp\Applog.log" | |
#endregion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment