major update to override Write-Output func

This commit is contained in:
2023-10-05 13:11:38 -04:00
parent 31a06a9206
commit bbb4884818
52 changed files with 377 additions and 378 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ $RegKey = 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell'
## Make sure endpoint is running at least Windows 8
If ( IsWindowsVersion -ge '6.3' )
{
LogMsg "Disabling tabled mode"
Write-Output "Disabling tabled mode"
Try
{
Set-ItemProperty $RegKey -Name 'TabletMode' -Value 0
@@ -11,4 +11,4 @@ If ( IsWindowsVersion -ge '6.3' )
}
Catch { LogErr $_.Exception.Message }
}
Else { LogMsg "Tablet mode is only supported on Windows 8 and higher" }
Else { Write-Output "Tablet mode is only supported on Windows 8 and higher" }