major change to override Write-Error func

This commit is contained in:
2023-10-05 13:17:18 -04:00
parent bbb4884818
commit 5f4b4565de
42 changed files with 114 additions and 114 deletions
+1 -1
View File
@@ -9,6 +9,6 @@ If ( IsWindowsVersion -ge '6.3' )
Set-ItemProperty $RegKey -Name 'TabletMode' -Value 0
Set-ItemProperty $RegKey -Name 'SignInMode' -Value 1
}
Catch { LogErr $_.Exception.Message }
Catch { Write-Error $_.Exception.Message }
}
Else { Write-Output "Tablet mode is only supported on Windows 8 and higher" }