- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to change pagefile settings from custom to system managed using PowerShell?
To change the pagefile settings to system managed, we need to set InitialSize and MaximumSize parameters to 0. In the below example, we have E: has custom pagefile, not system managed and we need to convert it to the system managed.
$pagefileset = Gwmi win32_pagefilesetting | where{$_.caption -like 'E:*'} $pagefileset.InitialSize = 0 $pagefileset.MaximumSize = 0 $pagefileset.Put() | Out-Null
Now when you check the pagefile setting on E: it should be System managed.
To change the settings on the remote computer use -ComputerName parameter in the Get-WmiObject method.
- Related Articles
- How to change Pagefile settings using PowerShell?
- How to get pagefile settings using PowerShell?
- How to remove pagefile on the specific drive using PowerShell?
- How to get IP address settings using PowerShell?
- How to get DNS IP Settings using PowerShell?
- How to get windows firewall profile settings using PowerShell?
- How to get the windows authentication settings using PowerShell?
- How to enable the Azure VM accelerated settings using PowerShell?
- How to disable the Azure VM accelerated settings using PowerShell?
- How to set the local user account settings using PowerShell?
- How to get the Azure VM disk encryption settings using PowerShell?
- How to get the Azure VM disk caching settings using PowerShell?
- How to get the IIS Application Pool failure Settings using PowerShell?
- How to get the IIS Application Pool Recycle settings using PowerShell?
- How to eject the USB device from the system using PowerShell?

Advertisements