forked from parsec-cloud/Parsec-Cloud-Preparation-Tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Loader.ps1
64 lines (54 loc) · 3.19 KB
/
Loader.ps1
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Write-Host -foregroundcolor red "
((//////
#######//////
##########(/////.
#############(/////,
#################/////*
#######/############////.
#######/// ##########////
#######/// /#######///
#######/// #######///
#######/// #######///
#######//// #######///
########////// #######///
###########////#######///
####################///
################///
*#############///
##########///
######(*
~Parsec Self Hosted Cloud Setup Script~
This script sets up your cloud computer
with a bunch of settings and drivers
to make your life easier.
It's provided with no warranty,
so use it at your own risk.
Check out the Readme.txt for more
information.
This tool supports:
OS:
Server 2016
Server 2019
CLOUD SKU:
AWS G3.4xLarge (Tesla M60)
AWS G2.2xLarge (GRID K520)
Azure NV6 (Tesla M60)
Paperspace P4000 (Quadro P4000)
Paperspace P5000 (Quadro P5000)
Google P100 VW (Tesla P100 Virtual Workstation)
Google P4 VW (Tesla P4 Virtual Workstation)
Google T4 VW (Tesla T4 Virtual Workstation)
"
Write-Output "Setting up Environment"
$path = [Environment]::GetFolderPath("Desktop")
if((Test-Path -Path $path\ParsecTemp )-eq $true){} Else {New-Item -Path $path\ParsecTemp -ItemType directory | Out-Null}
Unblock-File -Path .\*
copy-Item .\* -Destination $path\ParsecTemp\ -Recurse | Out-Null
#lil nap
Start-Sleep -s 1
#Unblocking all script files
Write-Output "Unblocking files just in case"
Get-ChildItem -Path $path\ParsecTemp -Recurse | Unblock-File
Write-Output "Starting main script, this Window will close in 60 seconds"
start-process powershell.exe -verb RunAS -argument "-file $path\parsectemp\PostInstall\PostInstall.ps1"
Start-Sleep -Seconds 60