Hari Kiran
Hari Kiran

Reputation: 111

How to get OS edition in UWP

I want to retrieve OS edition like "Windows 10 Home" or "Pro" etc in UWP application (Universal Windows Platform). Is there any method to get this done.

Thanks in Advance.

Upvotes: 2

Views: 458

Answers (2)

This is now possible with Windows 11 and Windows Server 2022 using the ProductName property inside AnalyticsVersionInfo class however currently there's a bug that reports it as Windows 10 {edition} instead of Windows 11 {edition}.

Upvotes: 0

Matt Lacey
Matt Lacey

Reputation: 65556

This isn't currently available in a UWP app unless you use the desktop bridge and AppServices to communicate with an traditional Win32 app that can access this.

Upvotes: 1

Related Questions