-
Notifications
You must be signed in to change notification settings - Fork 172
/
Loader.ps1
73 lines (62 loc) · 3.41 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
65
66
67
68
69
70
71
72
73
cls
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)
AWS g4dn.xlarge (Tesla T4)
AWS g4ad.4xlarge (AMD Radeon Pro V520)
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\ -Force -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"
start-process powershell.exe -verb RunAS -argument "-file $path\parsectemp\PostInstall\PostInstall.ps1"
Write-Host "You can close this window now...progress will happen on the Powershell Window that just opened" -backgroundcolor red
stop-process -Id $PID