Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Adjust Virtaul Memory on Windows 2012

$
0
0

Hi,

Need to adjust  Virtaul Memory on multiple Windows 2012 servers using Powershell

Powershell command so far:

$Computers= get-content "D:\Powershell\PageFile\ComputerName.txt"
foreach($computer in $Computers)
{
 Get-WmiObject -computername $computer -Class Win32_ComputerSystem | Set-OSCVirtualMemory -InitialSize 2XXX -MaximumSize 2XXX -DriveLetter "C:"
 Get-WmiObject -computername $computer -Class Win32_ComputerSystem | Set-OSCVirtualMemory -InitialSize 3XXX -MaximumSize 3XXX -DriveLetter "Z:"
}

Kindly help me in getting powershell module for Windows Server 2012 so that I can test it on our servers.

Also let me know if any change is required on the above powershell script.

Regards,

Shashank


Viewing all articles
Browse latest Browse all 6937

Trending Articles