major change to override Write-Error func
This commit is contained in:
@@ -34,7 +34,7 @@ If ( $HardwareGPUSchedulingEnabled -eq $false ) {
|
||||
New-ItemProperty -Path $key -Name $name -PropertyType DWord -Value 2 -Force -ErrorAction Stop
|
||||
Write-Output "A restart is required before this change will take effect"
|
||||
}
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
Catch { Write-Error $_.Exception.Message }
|
||||
} Else {
|
||||
Write-Output " - No GPU was found"
|
||||
Write-Output "Hardware assisted GPU scheduling will not be enabled"
|
||||
|
||||
Reference in New Issue
Block a user