Discussion:
Home or Pro?
(too old to reply)
T
2020-06-04 05:58:18 UTC
Permalink
Hi All,

From the command line, is there a was to tell if I am
running Home or Pro?

Many thanks,
-T
T
2020-06-04 06:20:37 UTC
Permalink
Post by T
Hi All,
From the command line, is there a was to tell if I am
running Home or Pro?
Many thanks,
-T
What I have wso far:

batch: Home or Pro?

Reference:
https://serverfault.com/questions/132963/windows-redirect-stdout-and-stderror-to-nothing

REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"ProductName"="Windows 10 Pro"



reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
ProductName REG_SZ Windows 10 Pro
Post by T
systeminfo
Host Name: DESKTOP-E17O2NL
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19041 N/A Build 19041
Kerr-Mudd,John
2020-06-04 08:44:18 UTC
Permalink
Post by T
Post by T
Hi All,
From the command line, is there a was to tell if I am
running Home or Pro?
Many thanks,
-T
batch: Home or Pro?
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v
ProductName HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
No need to search the registry, IMO.

How about:

@if exist C:\WINDOWS\system32\mstsc.exe echo Pro&goto :EOF
@echo Home
--
Bah, and indeed, Humbug.
T
2020-06-05 17:28:53 UTC
Permalink
Post by Kerr-Mudd,John
Post by T
Post by T
Hi All,
From the command line, is there a was to tell if I am
running Home or Pro?
Many thanks,
-T
batch: Home or Pro?
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v
ProductName HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
No need to search the registry, IMO.
@if exist C:\WINDOWS\system32\mstsc.exe echo Pro&goto :EOF
@echo Home
Thank you!


Hmmmmmm. msg.exe would work too.

where mstsc.exe
C:\Windows\System32\mstsc.exe

where msg.exe
C:\Windows\System32\msg.exe

where bozo.exe
INFO: Could not find files for the given pattern(s).


I am going to be doing a a remote assist with a Home in
a few hours, so I will run a "where" on both of them.
Bozo too, so he doesn't feel left out.
T
2020-06-05 19:22:20 UTC
Permalink
Post by T
Post by Kerr-Mudd,John
Post by T
Post by T
Hi All,
  From the command line, is there a was to tell if I am
running Home or Pro?
Many thanks,
-T
batch: Home or Pro?
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v
ProductName HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
No need to search the registry, IMO.
@if exist C:\WINDOWS\system32\mstsc.exe echo Pro&goto :EOF
@echo Home
Thank you!
Hmmmmmm.  msg.exe would work too.
where mstsc.exe
C:\Windows\System32\mstsc.exe
where msg.exe
C:\Windows\System32\msg.exe
where bozo.exe
INFO: Could not find files for the given pattern(s).
I am going to be doing a a remote assist with a Home in
a few hours, so I will run a "where" on both of them.
Bozo too, so he doesn't feel left out.
Opps. mstsc show in home as well.

Pro:
where mstsc.exe
C:\Windows\System32\mstsc.exe

where msg.exe
C:\Windows\System32\msg.exe

where bozo.exe
INFO: Could not find files for the given pattern(s).
Post by T
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
ProductName REG_SZ Windows 10 Home
Post by T
where mstsc.exe
C:\Windows\System32\mstsc.exe
Post by T
where msg.exe
INFO: Could not find files for the given pattern(s).
Post by T
where bozo.exe
INFO: Could not find files for the given pattern(s).
Kerr-Mudd,John
2020-06-05 21:30:35 UTC
Permalink
Post by T
Opps. mstsc show in home as well.
[]
Post by T
Post by T
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v
ProductName
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
ProductName REG_SZ Windows 10 Home
Ah I was checking XP Home v Pro!

Best check the reg then.
--
Bah, and indeed, Humbug.
Anthony R. Gold
2020-06-06 13:55:10 UTC
Permalink
On Fri, 5 Jun 2020 21:30:35 -0000 (UTC), "Kerr-Mudd,John"
Post by Kerr-Mudd,John
Post by T
Opps. mstsc show in home as well.
[]
Post by T
Post by T
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v
ProductName
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
ProductName REG_SZ Windows 10 Home
Ah I was checking XP Home v Pro!
Best check the reg then.
The RDP server is not a part of Home. Maybe someone can identify one or
more of its component files.
Kerr-Mudd,John
2020-06-06 15:31:16 UTC
Permalink
On Sat, 06 Jun 2020 13:55:10 GMT, "Anthony R. Gold" <not-for-
Post by Anthony R. Gold
On Fri, 5 Jun 2020 21:30:35 -0000 (UTC), "Kerr-Mudd,John"
Post by Kerr-Mudd,John
Post by T
Opps. mstsc show in home as well.
[]
Post by T
Post by T
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v
ProductName
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
ProductName REG_SZ Windows 10 Home
Ah I was checking XP Home v Pro!
Best check the reg then.
The RDP server is not a part of Home. Maybe someone can identify one or
more of its component files.
rdpdr.sys looks like a reasonable candidate:
try:
if exist %systemroot%\system32\drivers\rdpdr.sys echo Pro&goto :EOF
@echo Home
--
Bah, and indeed, Humbug.
T
2020-06-06 23:48:56 UTC
Permalink
Post by Kerr-Mudd,John
Best check the reg then.
It responds very quickly too.

Sysinfo takes a bit
T
2020-06-07 07:22:08 UTC
Permalink
Post by T
Hi All,
From the command line, is there a was to tell if I am
running Home or Pro?
Many thanks,
-T
My latest:


batch: Home or Pro?

Reference:
https://serverfault.com/questions/132963/windows-redirect-stdout-and-stderror-to-nothing

REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"ProductName"="Windows 10 Pro"
Post by T
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v
ProductName
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
ProductName REG_SZ Windows 10 Pro
ProductName REG_SZ Windows 7 Professional
Post by T
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v
ProductName
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
ProductName REG_SZ Windows 10 Home
Post by T
systeminfo
Host Name: DESKTOP-E17O2NL
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19041 N/A Build 19041
Post by T
systeminfo
Host Name: NEWSERVER
OS Name: Microsoft Windows 10 Home
OS Version: 10.0.18362 N/A Build 18362


Pro:
where msg.exe
C:\Windows\System32\msg.exe

where bozo.exe
INFO: Could not find files for the given pattern(s).
Post by T
where msg.exe
INFO: Could not find files for the given pattern(s).
Post by T
where bozo.exe
INFO: Could not find files for the given pattern(s).



For Release and build:

reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v BuildLabEx

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
BuildLabEx REG_SZ 19041.1.amd64fre.vb_release.191206-1406
BuildLabEx REG_SZ 7601.18247.amd64fre.win7sp1_gdr.130828-1532


Seems now that this is the only way to get it:

reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ReleaseID

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
ReleaseID REG_SZ 2004
<no equivalent in Windows 7>
Kerr-Mudd,John
2020-06-07 09:03:56 UTC
Permalink
Post by T
Hi All,
From the command line, is there a was to tell if I am
running Home or Pro?
Many thanks,
-T
just for completeness, with Windows XP Pro -

reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersio
n" /v ProductName

shows:

! REG.EXE VERSION 3.0

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
ProductName REG_SZ Microsoft Windows XP


["msg" gives help info]

systeminfo|find "OS Name"
(eventually) gives:
OS Name: Microsoft Windows XP Professional
--
Bah, and indeed, Humbug.
T
2020-06-07 19:40:51 UTC
Permalink
Post by Kerr-Mudd,John
Post by T
Hi All,
From the command line, is there a was to tell if I am
running Home or Pro?
Many thanks,
-T
just for completeness, with Windows XP Pro -
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersio
n" /v ProductName
! REG.EXE VERSION 3.0
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
ProductName REG_SZ Microsoft Windows XP
["msg" gives help info]
systeminfo|find "OS Name"
OS Name: Microsoft Windows XP Professional
Thank you!

Loading...