-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLoader.ps1
64 lines (55 loc) · 3.02 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
cls
Write-Host -foregroundcolor green "
((//////
#######//////
##########(/////.
#############(/////,
#################/////*
#######/############////.
#######/// ##########////
#######/// /#######///
#######/// #######///
#######/// #######///
#######//// #######///
########////// #######///
###########////#######///
####################///
################///
*#############///
##########///
######(*
~Cloud GPU Gaming 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.md for more
troubleshooting info.
This tool supports:
OS:
Server 2022 Base AMI
Server 2019 Base AMI
CLOUD GPU INSTANCES:
AWS G5.2xLarge (Ampere A10G)
AWS g4dn.xlarge (Tesla T4)
AWS g4ad.4xlarge (AMD Radeon Pro V520)
"
Write-Output "[o] 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
}
# Unblocking all script files
Unblock-File -Path .\*
Copy-Item .\* -Destination $path\ParsecTemp\ -Force -Recurse | Out-Null
# lil nap
Start-Sleep -s 1
Write-Output "[o] Unblocking files just in case"
Get-ChildItem -Path $path\ParsecTemp -Recurse | Unblock-File
Write-Output "[o] 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 Green -ForegroundColor White
Stop-Process -Id $PID