You are on page 1of 1

<#

.SYNOPSIS
This script installs StoreFront 3.5
.DESCRIPTION
The following components are installed:
- necessary Roles and Features
- StoreFront 3.5
.PARAMETER
.NOTES
This script was tested on Windows Server 2012 R2
.LINK
http://www.ConoScenza.nl
.AUTHOR
Edwin Houben
.Date
2016-03-01
.For
#>
# Set Execution Policy Bypass
Set-ExecutionPolicy -ExecutionPolicy Bypass -Force
# Set Stop on error
$ErrorActionPreference = "Stop"
# Disable open file security warnings
$env:SEE_MASK_NOZONECHECKS = 1
# Add the required Windows Features
Write-Host "Part 01 - Installing Windows Server Features -ForegroundColor Blue
Import-Module ServerManager
Add-WindowsFeature AS-Net-Framework,Web-Net-Ext45,Web-AppInit,Web-ASP-Net45,WebISAPI-Ext,Web-ISAPI-Filter,Web-Default-Doc,Web-HTTP-Errors,Web-Static-Content,We
b-HTTP-Redirect,Web-HTTP-Logging,Web-Filtering,Web-Windows-Auth -Restart:$false
# Citrix Silent Install
Write-Host "Set variables for unattended install" -ForegroundColor Blue
$SoftwareSource = "<server>\path"
# Install Citrix StoreFront 3.5
# Command line and options
# CitrixStoreFront-x64.exe [-silent] [-INSTALLDIR installationlocation]
# [-WINDOWS_CLIENT filelocation\filename.exe]
# [-MAC_CLIENT filelocation\filename.dmg]
Write-Host "Install Citrix Storefront 3.5" -ForegroundColor Blue
New-PSDrive -Name "H" -PSProvider FileSystem -Root $SoftwareSource -Persist
$Process="H:\CitrixStoreFront-x64.exe"
$Arguments='-silent
Start-Process $Process -ArgumentList $Arguments -wait -erroraction $ErrorActionP
reference
Restart-Computer -ComputerName $env:COMPUTERNAME

You might also like