Ajout des formules et scripts pour désactivation du swap Windows. A tester.
This commit is contained in:
9
files/NoSwap.ps1
Normal file
9
files/NoSwap.ps1
Normal file
@@ -0,0 +1,9 @@
|
||||
# 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();
|
||||
3
windows/NoSwap.sls
Normal file
3
windows/NoSwap.sls
Normal file
@@ -0,0 +1,3 @@
|
||||
Desactivation du Swap Windows:
|
||||
cmd.run:
|
||||
- name: salt://files/NoSwap.ps1
|
||||
Reference in New Issue
Block a user