-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDriver Installation.ps1
More file actions
39 lines (24 loc) · 931 Bytes
/
Driver Installation.ps1
File metadata and controls
39 lines (24 loc) · 931 Bytes
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
$dir ="C:\temp"
if (!(Test-Path $dir)) {New-Item -Path $dir -ItemType container}
#change URL depending on what grahics card you have, will add a check and get latest driver at some point.
$url = "us.download.nvidia.com/Windows/Quadro_Certified/452.57/452.57-quadro-desktop-notebook-win10-64bit-international-dch-whql.exe"
$outpath = "$dir\Nvidia Driver.exe"
Add-Type -AssemblyName System.Windows.Forms
$UserResponse= [System.Windows.Forms.MessageBox]::Show("Do you want to downaload the driver?." , "Status" , 4)
if ($UserResponse -eq "YES" )
{
Invoke-WebRequest -Uri $url -OutFile $outpath -ErrorAction SilentlyContinue
}
else
{
#No activity
}
$UserResponse= [System.Windows.Forms.MessageBox]::Show("Do you want to install the driver?." , "Status" , 4)
if ($UserResponse -eq "YES" )
{
Start-Process -FilePath "C:temp\Nvidia Driver.exe"
}
else
{
#No activity
}