Skip to content

Instantly share code, notes, and snippets.

@DexterPOSH
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DexterPOSH/10006834 to your computer and use it in GitHub Desktop.
Save DexterPOSH/10006834 to your computer and use it in GitHub Desktop.
This Script is used for setting the VM Size (SCCM 2012 Application)
#region get Script Directory
function Get-ScriptDirectory
{
$Invocation = (Get-Variable MyInvocation -Scope 1).Value
Split-Path $Invocation.MyCommand.Path
}
$scriptdir = Get-ScriptDirectory
#endregion
#region set 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 -InitialSize 1024 -MaximumSize 2048 -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