-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRun_Driver_Update_Scripts.ps1
More file actions
38 lines (31 loc) · 1.13 KB
/
Run_Driver_Update_Scripts.ps1
File metadata and controls
38 lines (31 loc) · 1.13 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
29
30
31
32
33
34
35
36
37
38
<#
.Synopsis
Run Driver Update Checks for HP and Dell Workstations
.DESCRIPTION
This script launches the driver update script for either Dell or HP depending on what's detected. It will exit if it's a different manufacturer than those
.EXAMPLE
Example of how to use this cmdlet
.EXAMPLE
Another example of how to use this cmdlet
#>
#--------------------MAIN BODY-----------------------------------------------------------
#----------------------------------------------------------------------------------------
Write-Host "Checking Computer Manufacturer"
$Manufactuer=(Get-CimInstance win32_ComputerSystem).Manufacturer
if ($Manufactuer -like "*Dell*")
{
Write-Host "Manufacturer is Dell. Launching Dell Driver Update Script"
& "$PSScriptRoot\DellDriverUpdate.ps1"
}
elseif ($Manufactuer -like "*HP*")
{
Write-Host "Manufacturer is HP. Launching HP Driver Update Script"
& "$PSScriptRoot\HPDriverUpdate.ps1"
}
else
{
Write-Host "Manufacturer isn't supported, unable to run Asset Tag script." -ForegroundColor Red
pause
}
remove-item -path "C:\Drivers" -Recurse
exit