[Webinar] Introducing Employee Experience Optimization for the Work-From-Anywhere Era Watch On-Demand

Script Library

Boost your management, troubleshoot, and remediation capabilities with scripts created by experts in the IT community.

<< Back to Script Library

Tag: ram

(2 Scripts)
This script will change the resource allocation of a given vSphere VM. By default, the allocation is increased one ‘SharesLevel’ for CPU, HDD, Memory or all three.
If the SharesLevel for a resource is ‘Custom’ this will not be changed. ALL hard disks will be set to a new SharesLevel based on the current level of the FIRST disk. Example, script is set to Increase level for All resources:
CPU SharesLevel ‘Normal’ —> CPU ShareLevel ‘High’
Memory SharesLevel ‘Custom’ —> Memory SharesLevel ‘Custom’
FIRST HDD SharesLevel ‘Low’, SECOND HDD SharesLevel ‘Normal’ —> ALL HDD SharesLevel ‘Normal’
Version: 1.0.2  |   Created: 2019-03-19  |   Modified: 2019-03-19  |   Creator: Ton de Vreede  |   Downloads: 24
Set the page file to a specific drive or full path and its initial and maximum sizes. If the sizes are not specified, or specified as zero, then the page file sizes will be system managed. If the page file location is empty or set to “auto” then the page file will be automatically managed.
A reboot will be required for the changes to take effect.
Arguments:
Page File Location – Either a drive, drive and folder or empty or set to “auto” where the latter two will result in the page file being automatically managed
Initial Size – The initial size of the page file in MB. If zero then sizes will be system managed.
Maximum Size – The maximum size of the page file in MB. If zero then sizes will be system managed.
Version: 1.3.9  |   Created: 2018-10-14  |   Modified: 2018-11-26  |   Creator: Guy Leech  |   Downloads: 170