Detect if running under Windows 10/11 S

Peter Volz 1,095 Reputation points

Hello all How to check in a .net framework winforms app if we're running under Windows 10/11 S? To be specific, I'm on .net 4.0 full profile, vb, but C# solution is fine as well. Any idea? :)

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
9,943 questions
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,496 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jiachen Li-MSFT 24,201 Reputation points Microsoft Vendor

    Hi @Peter Volz ,

    You can check the SKUPolicyRequired in HKLM\System\CurrentControlSet\Control\CI\Policy , the value 1 indicates the Windows 10 device is operating in S mode.

    Best Regards.

    Jiachen Li

    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Dewayne Basnett 1,041 Reputation points

    I wonder if these might help

            Dim os As String = My.Computer.Info.OSFullName 'WMI must be installed
            Dim plat As String = My.Computer.Info.OSPlatform
            Dim vers As String = My.Computer.Info.OSVersion
    0 comments No comments