henrydenhengst

Citrix StoreFront Complete Automation

Aug 24th, 2015
1,294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # http://xenappblog.com/2015/citrix-storefront-complete-automation/
  2.  
  3. # Add required Windows Features
  4. #==============================
  5.  
  6. Import-Module ServerManager
  7. Add-WindowsFeature AS-Net-Framework,Web-Net-Ext45,Web-AppInit,Web-ASP-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Default-Doc,Web-HTTP-Errors,Web-Static-Content,Web-HTTP-Redirect,Web-HTTP-Logging,Web-Filtering,Web-Windows-Auth
  8.  
  9. # Citrix Parameters
  10. #==================
  11. $HostBaseURL = "https://storefront.ctxlab.com" # FQDN of the required Storefront URL. In case of cluster, use cluster URL
  12. $Farmname = "Site_CTXLAB"
  13. $Port = "80" # XML port
  14. $TransportType = "HTTP" # XML transport type
  15. $sslRelayPort = "443"
  16. $Servers = "dc01.ctxlab.com","dc02.ctxlab.com" # List of XML servers (FQDN)
  17. $LoadBalance = $true
  18. $FarmType = "XenApp" # XenDesktop or XenApp
  19.  
  20. #$InternalBeacon = "https://storefront.ctxlab.com"
  21. #[Array]$ExternalBeacons = @("http://www.citrix.com","http://www.google.com")
  22.  
  23. # Install Citrix StoreFront
  24. #==========================
  25.  
  26. $Process="E:\x64\StoreFront\CitrixStoreFront-x64.exe"
  27. $Arguments='-silent'
  28.  
  29. Start-Process $Process -ArgumentList $arguments -wait
  30.  
  31. # Import Storefront modules
  32. #==========================
  33.  
  34. . "C:\Program Files\Citrix\Receiver StoreFront\Scripts\ImportModules.ps1"
  35.  
  36. # Setup Initial Configuration
  37. #============================
  38.  
  39. Set-DSInitialConfiguration -hostBaseUrl $HostBaseURL -farmName $Farmname -port $Port -transportType $TransportType -sslRelayPort $sslRelayPort -servers $Servers -loadBalance $LoadBalance -farmType $FarmType
  40.  
  41. # Config Internal Beacon
  42. #========================
  43.  
  44. #Set-DSGlobalInternalBeacon -BeaconAddress $InternalBeacon
  45.  
  46. # Config External Beacon
  47. #=======================
  48.  
  49. #Set-DSGlobalExternalBeacons -Beacons $ExternalBeacons[0],$ExternalBeacons[1]
  50.  
  51. # Disable check publisher's certificate revocation (to speed up console start-up)
  52. #================================================================================
  53.  
  54. set-ItemProperty -path "REGISTRY::\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing\" -name State -value 146944
Advertisement
Add Comment
Please, Sign In to add comment