Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # http://xenappblog.com/2015/citrix-storefront-complete-automation/
- # Add required Windows Features
- #==============================
- Import-Module ServerManager
- 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
- # Citrix Parameters
- #==================
- $HostBaseURL = "https://storefront.ctxlab.com" # FQDN of the required Storefront URL. In case of cluster, use cluster URL
- $Farmname = "Site_CTXLAB"
- $Port = "80" # XML port
- $TransportType = "HTTP" # XML transport type
- $sslRelayPort = "443"
- $Servers = "dc01.ctxlab.com","dc02.ctxlab.com" # List of XML servers (FQDN)
- $LoadBalance = $true
- $FarmType = "XenApp" # XenDesktop or XenApp
- #$InternalBeacon = "https://storefront.ctxlab.com"
- #[Array]$ExternalBeacons = @("http://www.citrix.com","http://www.google.com")
- # Install Citrix StoreFront
- #==========================
- $Process="E:\x64\StoreFront\CitrixStoreFront-x64.exe"
- $Arguments='-silent'
- Start-Process $Process -ArgumentList $arguments -wait
- # Import Storefront modules
- #==========================
- . "C:\Program Files\Citrix\Receiver StoreFront\Scripts\ImportModules.ps1"
- # Setup Initial Configuration
- #============================
- Set-DSInitialConfiguration -hostBaseUrl $HostBaseURL -farmName $Farmname -port $Port -transportType $TransportType -sslRelayPort $sslRelayPort -servers $Servers -loadBalance $LoadBalance -farmType $FarmType
- # Config Internal Beacon
- #========================
- #Set-DSGlobalInternalBeacon -BeaconAddress $InternalBeacon
- # Config External Beacon
- #=======================
- #Set-DSGlobalExternalBeacons -Beacons $ExternalBeacons[0],$ExternalBeacons[1]
- # Disable check publisher's certificate revocation (to speed up console start-up)
- #================================================================================
- 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