Загрузка...

Change Pagefile.sys Virtual Memory settings in Control Panel CMD and PowerShell

How to Change Pagefile.sys Virtual Memory file setting in Control Panel CMD and PowerShell
Please subscribe to my channel ⬆️ and like this video ↗️
.
CMD:
wmic.exe pagefile list /format:list
.
Disable System Managed-
wmic computersystem where name=”%computername%” set AutomaticManagedPagefile=False
.
Set 4 GB Initial and an 8 GB Maximum-
wmic pagefileset where name=”C:\\pagefile.sys” set InitialSize=4096,MaximumSize=8192
.
Re-enable system Managed-
wmic computersystem where name="%computername%" set AutomaticManagedPagefile=true
.
PowerShell:
Get metrics-
Get-CimInstance Win32_PageFileUsage | Select-Object Name, CurrentUsage, AllocatedBaseSize, PeakUsage
.
Disable System Managed:
$computersys = Get-WmiObject Win32_ComputerSystem -EnableAllPrivileges
$computersys.AutomaticManagedPagefile = $False
$computersys.Put()
.
Set 4 GB Initial and an 8 GB Maximum-
Set-CimInstance -Query "SELECT * FROM Win32_PageFileSetting" -Arguments @{Name="C:\pagefile.sys"; InitialSize = 4096; MaximumSize = 8192}
.
Apply, Reboot-
Get-CimInstance Win32_PageFileSetting -Filter "Name='C:\\pagefile.sys'" | Remove-CimInstance

Revert, Re-enable system Managed-
$computersys = Get-WmiObject Win32_ComputerSystem -EnableAllPrivileges
$computersys.AutomaticManagedPagefile = $True
$computersys.Put()
.
Whether you are a novice home user or experienced technician if you found this video helpful feel free to bookmark for future use or save the link in your knowledge base, wiki, confluence or ticket. Lets Ninja fix IT! 💪
.
Note: These guides are not intended to guarantee resolution on any issues, warnings, or errors you are experiencing with your infrastructure. A strong technical background is recommended in, but not limited to, server administration, Window OS, networking, Office 365, cmd line, powershell and general MSP best practices. Always export the current configuration, confirm backup solutions are up to date, make a backup\snapshot\checkpoint before making any changes. Do not make any irreversible changes or deletion events with out performing due diligence.
Hashtags
--------------
#windows #window10 #windows11 #fix #Microsoft #virtual #virtualmemory #memory #pagefile #pagefile.sys #CMD #powershell #scripting

Видео Change Pagefile.sys Virtual Memory settings in Control Panel CMD and PowerShell канала IT Ninja Warrior
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять