I get emails from powershell.com that are worth sharing (and remembering). These are not my scripts. Signup for daily PowerTips here: http://powershell.com/cs/.
If you would like to programmatically control page file settings, you can use WMI but must enable all privileges using
If you would like to programmatically control page file settings, you can use WMI but must enable all privileges using
-EnableAllPrivileges
. The code below will disable automatic page files:$c = Get-WmiObject Win32_ComputerSystem -EnableAllPrvileges
$c.AutomaticManagedPagefile = $false
$c.Put()
0 komentar:
Posting Komentar