major change to override Write-Error func
This commit is contained in:
@@ -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" }
|
||||
Reference in New Issue
Block a user