I am running windows PRO
when I run the following command :
(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ProductName).ProductName
using a regular user in PowerShell the result is Windows 10 PRO though I am running Windows 11
when I run the same command using Admin mode I get :
Windows 10 Enterprise
Which is pretty amazing given the fact that it comes from the same registry key.
I was wondering if it is a bug and if someone have a better way getting the product name (like pro enterprise etc.)
running the same command in powershell (not through a .ps1 file) gives the same results.