forked from ConfigMgrHydration/Setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstall-HYDSQLServer2014.ps1
More file actions
28 lines (20 loc) · 1.17 KB
/
Install-HYDSQLServer2014.ps1
File metadata and controls
28 lines (20 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<#
************************************************************************************************************************
Created: 2015-03-01
Version: 1.1
Disclaimer:
This script is provided "AS IS" with no warranties, confers no rights and
is not supported by the author or DeploymentArtist.
Author - Johan Arwidmark
Twitter: @jarwidmark
Blog : http://deploymentresearch.com
************************************************************************************************************************
#>
# Validation
if (!(Test-Path -path C:\Setup\SQL2014\setup.exe)) {Write-Warning "Could not find SQL Server 2014 setup files, aborting...";Break}
if (!(Test-Path -path C:\Setup\Scripts\HYDSQL2014Unattend.ini)) {Write-Warning "Could not find SQL Server 2014 Unattend file, aborting...";Break}
if (!(Test-Path -path G:\)) {Write-Warning "Could not find SQL TempDB Volume, aborting...";Break}
if (!(Test-Path -path H:\)) {Write-Warning "Could not find SQL DB Volume, aborting...";Break}
if (!(Test-Path -path I:\)) {Write-Warning "Could not find SQL Logs Volume, aborting...";Break}
# Install SQL
& C:\Setup\SQL2014\setup.exe /configurationfile=C:\Setup\Scripts\HYDSQL2014Unattend.ini