Skip to content

Instantly share code, notes, and snippets.

@alainassaf
Created March 1, 2017 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alainassaf/c0fa0454bbc5e6816a361b4ebe9e3255 to your computer and use it in GitHub Desktop.
Save alainassaf/c0fa0454bbc5e6816a361b4ebe9e3255 to your computer and use it in GitHub Desktop.
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