Recopie initiale

This commit is contained in:
Iwan Clement
2018-05-21 13:03:35 +02:00
commit 3f39bfa01d
319 changed files with 1543 additions and 0 deletions

10
files/NoSwap.ps1 Normal file
View File

@@ -0,0 +1,10 @@
# https://stackoverflow.com/questions/37813441/powershell-script-to-set-the-size-of-pagefile-sys
# PowerShell Script to set the size of pagefile.sys
$computersys = Get-WmiObject Win32_ComputerSystem -EnableAllPrivileges;
$computersys.AutomaticManagedPagefile = $False;
$computersys.Put();
$pagefile = Get-WmiObject -Query "Select * From Win32_PageFileSetting Where Name like '%pagefile.sys'";
$pagefile.InitialSize = 0;
$pagefile.MaximumSize = 0;
$pagefile.Put();