windows Memory compression on / off

·

default ON

PS C:\path> get-MMagent

MemoryCompression : True

PowerShell.exe -ExecutionPolicy Bypass -NoProfile -File ApplyAction.ps1

(Enable-MMAgent -mc : memory compression 활성화, Disable-MMAgent -mc : 비활성화)

#MC Off

Disable-MMAgent -mc

#로그생성 디렉토리 확인 없을 경우 생성

if (!(Test-Path -Path “C:\temp”)) {

New-item item Type Ddirectory -Path “C:\temp”

}

#get-mmagent를 이용한 로그 생성

Get-MMagent | Out-File -FilePath c:\temp\mc_status.log

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다