Script Library

Order by
Showing controlup scripts that tagged 'sshenabled, users, memory, credentials' ordered by Date

Create credentials for Horizon scripts 3.6.12

Connecting to a Horizon Connection server is required for running Horizon scripts. The server does not allow passthrough (Active Directory) authentication. In order to allow scripts to run without asking for a password each time (such as in Automated Actions) a PSCredential object needs to be stored on each target device (i.e. each machine that will be used for running Horizon scripts). This script can create this PSCredential object on the targets. PSCREDENTI Connecting to a Horizon Connection server is required for running Horizon View scripts. The server does not allow passthrough (Active Directory) authentication. In order to allow scripts to run without asking for a password each time (such as in Automated Actions) a PSCredential object needs to be stored on each target device (ie. each machine that will be used for running Horizon View scripts). This script can create this PSCredential object on the targets. PSCREDENTIAL OBJECTS CAN ONLY BE USED BY THE USER THAT CREATED THE OBJECT AND ON THE MACHINE THE OBJECT WAS CREATED. - The User that creates the file is required to have a local profile when creating the file. This is a limitation from Powershell Modification history: 20/08/2019 - Anthonie de Vreede - First version 03/06/2020 - Wouter Kursten - Second version Changelog ; Second Version - Added check for local profile - changed error message when failing to create the xml fileAL OBJECTS CAN ONLY BE USED BY THE USER THAT CREATED THE OBJECT AND ON THE MACHINE THE OBJECT WAS CREATED. tags:horizon,credentials
Created: 2019-12-02
Modified: 2020-09-11
Creator: Ton de Vreede
Downloads: 25

Disable or Enable SSH on an VMware ESXi host 1.2.25

Using PowerCLI, Connect to vCenter and start or stop the SSH service on a host. Notet that , the computer running this script must have PowerCLI, and vCenter credentails are required during script execution. tags:$HypervisorPlatform="VMware",$SSHenabled
Created: 2019-10-04
Modified: 2019-10-04
Creator: mc
Downloads: 37

Cap Memory of Process 1.1.2

Set the maximum working set size for a process such that it cannot consume more than that amount of memory. Gives the ability to set a memory limit on a process, such as one with a known memory leak, so that it cannot consume more than the maximum memory specified via the parameter. Additional memory allocations will be allowed by the OS paging out some of the existing working set, generally the least recently used. tags:memory, working set
Created: 2019-06-10
Modified: 2019-12-12
Creator: Guy Leech
Downloads: 49

Create process memory dump 2.4.7

Creates a full process memory dump of the chosen process to a file in the folder specified. If the chosen process is werfault.exe then its parent process will be dumped instead Arguments: Dump Folder - the folder in which to create the dump file in the format ..dmp tags:process, memory dump, debugging
Created: 2018-12-01
Modified: 2020-06-04
Creator: Guy Leech
Downloads: 71

Change local group membership 1.4.12

Add or remove domain or local accounts to/from local groups on selected computers. Can either be done immediately or at a given date/time in the future via a scheduled task, e.g. remove specific users from the local admininstrators group in 1 day's time. Arguments: Users - a comma separated list of AD user accounts to add/remove to/from the specified group Local group - the name of the local group which will have the users added or removed Remove from group - if true then the specified users will be removed from the group, if false then the users will be added to the group (default is false) When - If nothing is specified, the action is taken immediately otherwise a scheduled task is created to perform the action at the data/time specified which can also be a number followed by a time unit, e.g. 8h for 8 hours or 1d for 1 day. If specifying a date/time, it must be enclosed in double quotes. tags:Users,Groups,Security
Created: 2018-10-22
Modified: 2018-11-26
Creator: Guy Leech
Downloads: 38