Script Library

Order by
Showing controlup scripts that tagged 'user profiles, disk activity, page file, ip blocking' ordered by Date

Redirect URLs to 127.0.0.1 in HOSTS file 1.4.19

This script can be used as a quick way to block access to a URL. The provided URLs (comma separated) are placed in a 'ControlUp' section of the HOSTS file, where they are directed to 127.0.0.1. As a result DNS lookup of these URLs always point to home, essentially preventing access to a website unless you know the IP number. After this the command IPCONFIG /FLUSHDNS is run to clear the DNS cache. tags:ip blocking, hosts
Created: 2020-03-30
Modified: 2020-03-30
Creator: Ton de Vreede
Downloads: 18

Show or delete local user profiles 2.4.20

Finds and optionally deletes local user profiles. The user can provide two arguments - the minimum profile age in days and the minimum profile size. The default operation mode is to display the profiles that fit these criteria. When the "Delete" option is set to "true", the script will delete the profiles it found. tags:user profiles,disk space,vdi,rds,citrix
Created: 2018-12-26
Modified: 2020-06-10
Creator: Guy Leech
Downloads: 84

Set page file size and location 1.3.9

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. tags:Page file,RAM,Pages/sec
Created: 2018-10-14
Modified: 2018-11-26
Creator: Guy Leech
Downloads: 125

Show page file information 1.3.7

Show configuration for all page files including the path and current and peak usage tags:Page file,Pages/sec
Created: 2018-10-12
Modified: 2018-11-26
Creator: Guy Leech
Downloads: 552

Run procmon and sample file access 2.10.45

Run the Sysinternals Process Monitor (procmon) utility for a specified amount of time for a selected process and see which files are most frequently accessed. If a path to an existing procmon executable is not given, it will be downloaded securely from the live.sysinternals.com site. Arguments: Monitor Period - the time in seconds to run the monitoring for. Monitoring for more than 60 seconds is not recommended as this can potentially impact system performance and disk space. Backing file - if not specified this will be in the \windows\temp folder on the system drive which on Citrix PVS booted systems can cause performance issues so specifying a file on a persistent local drive can help alleviate this potential issue. Procmon Location - the location of an existing copy of procmon.exe. If not specified and internet connectivity is available, it will be downloaded. tags:Procmon,IOPS,Disk Activity
Created: 2018-10-01
Modified: 2019-08-08
Creator: Guy Leech
Downloads: 310