Files

14 lines
472 B
PowerShell
Raw Permalink Normal View History

2020-10-25 09:39:25 -04:00
$RegKey = 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell'
2021-05-24 14:05:59 -04:00
2020-10-25 09:39:25 -04:00
## Make sure endpoint is running at least Windows 8
If ( IsWindowsVersion -ge '6.3' )
{
2023-10-05 13:11:38 -04:00
Write-Output "Disabling tabled mode"
2020-10-25 09:39:25 -04:00
Try
{
Set-ItemProperty $RegKey -Name 'TabletMode' -Value 0
Set-ItemProperty $RegKey -Name 'SignInMode' -Value 1
}
2023-10-05 13:17:18 -04:00
Catch { Write-Error $_.Exception.Message }
2020-10-25 09:39:25 -04:00
}
2023-10-05 13:11:38 -04:00
Else { Write-Output "Tablet mode is only supported on Windows 8 and higher" }