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