Friday, May 3, 2013

Detect a TabletPC with Powershell

Want to programmatically  detect a Tablet PC within Windows?   Here are the powershell commands:

Add-Type –assemblyName PresentationFramework
[System.Windows.SystemParameters]::IsTabletPC

It will return True if a Tablet PC, False if not.

No comments:

Post a Comment