Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cleanup-reboot gist 1
Param(
[parameter(Position = 0, Mandatory=$False )]
[ValidateNotNullOrEmpty()]
$DeliveryControllers="YOURDDC.DOMAIN.LOCAL" # Change to hardcode a default value for your Delivery Controller. Can be a list separated by commas
)
#Constants
$PSSnapins = ("Citrix*")
$WORKERGROUPS = "Zone Data Collectors,Productivity Apps" #Define which worker groups should be processed. Comma seperated list, spaces acceptable, case insensitive (for example "Zone Data Collectors,Productivity Apps"). Leaving blank will process all servers in the farm as in previous revisions
$EXCLUDESERVERS = "CORPCTX01,CORPCTX02,CORPCTX05" #Define which servers should be excluded from processing. Comma seperated list, short names only, case insensitive (for example "CORPCTX01,CORPCTX02,CORPCTX05")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment