2020-05-10 15:53:10 +02:00
|
|
|
# virtio windows drivers Removal
|
2021-12-30 13:39:23 +01:00
|
|
|
# 2017-2021 foo.li systeme + software
|
2017-11-11 00:32:56 +01:00
|
|
|
|
|
|
|
$packageName = 'kvm-virito-drivers'
|
2021-12-30 13:39:23 +01:00
|
|
|
$version = '0.1.208'
|
2017-11-11 00:32:56 +01:00
|
|
|
$virtioPath = "$env:SystemDrive" + "\Virtio_" + $version
|
|
|
|
|
|
|
|
try {
|
|
|
|
if (Test-Path $virtioPath) {
|
|
|
|
Write-Host 'removing directory ' $virtioPath
|
2020-05-10 15:53:10 +02:00
|
|
|
Remove-Item $virtioPath -Recurse -Force
|
2017-11-11 00:32:56 +01:00
|
|
|
} else {
|
|
|
|
Write-Host 'could not detect ' $virtioPath ' files.'
|
|
|
|
}
|
|
|
|
Write-Host '[NOTE]: this does not remove any installed drivers, just the sourcefiles.'
|
|
|
|
} catch {
|
|
|
|
throw $_.Exception
|
|
|
|
}
|