2016-06-14 11 views

答えて

3

これは、我々はPowerShellを介して、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 = <New_Value_For_Size_In_MB>; 
$pagefile.MaximumSize = <New_Value_For_Size_In_MB>; 
$pagefile.Put(); 

は、以下のようにスクリプトを実行します。

PS> .\update_pagefile_size.ps1; 
関連する問題