Script Library

Order by
Showing controlup scripts that tagged 'sshenabled, users, reboot, maintenance' ordered by Date

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

Set host state to maintenance 1.4.10

Placing a host in Maintenance will migrate the powerred on VMs to other hosts in the cluster. If the Evacuate switch is passed all offline machines a migrated too. This script will only place a host in Maintenance if the cluster it is part of is DRSFullyAutomated. If the host uses a VSAN and the PowerCLI version is high enough the default VsanEvacuationMode setting will be used. This is only supported with PowerCLI 6 or higher. tags:vsphere,host,maintenance,vmware
Created: 2019-02-21
Modified: 2019-03-31
Creator: Ton de Vreede
Downloads: 25

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

Cancel scheduled reboot 1.5.13

Cancel a reboot scheduled via the Schedule Reboot action by finding and deleting the scheduled task created by the Schedule Reboot action tags:Reboot,Schedule
Created: 2018-09-29
Modified: 2018-11-26
Creator: Guy Leech
Downloads: 53

List all XenDesktop VMs in Maintenance Mode 1.3.8

This script will list all the VMs in a specific XenDesktop site that are listed in maintenance mode in the DDC. It must be run on a XenDesktop broker. The script prompts for and requires at least a XenDesktop read-only admin account. tags:PowerShell, XenDesktop, maintenance mode
Created: 2016-05-04
Modified: 2016-05-05
Creator: Matan Nataf
Downloads: 243

RDS Drain Sessions 1.0.5

Puts RDS hosts into maintenance mode using the chglogon command. The script will disable all new user connections to the server until it is rebooted (existing active connections are not affected). tags:RDS, Maintenance,
Created: 2016-03-07
Modified: 2016-03-07
Creator: david.crook
Downloads: 185

Disable Horizon View Maintenance Mode 2.3.8

Disable Horizon View Maintenance Mode for the selected computer(s). tags:VMware, Horizon,View,PowerShell,PowerCLI, maintenance
Created: 2014-11-26
Modified: 2018-11-29
Creator: Zeev Eisenberg
Downloads: 25
1 - 7 of 8 Scripts
< Prev   1  2   Next >