Why is Winver showing another Version than Powershell? - windows

Hello Guys! Why is Winver showing me Windows Version 21H2 but Powershell Command 2009?
Get-ComputerInfo | select WindowsProductName, WindowsVersion
Info: With my Personal PC at home Windows 11 Pro 21H2, it works with the command
Get-ComputerInfo | Select-Object -expand OSDisplayVersion
Unfortunately this Property doesn`t exist at my Laptop, or maybe in general at Win10 Enterprise?

You can mimic the way winver.exe shows the current Windows version by taking the values from the registry:
$v = Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion'
# output like winver does
'Version {0} (Build {1}.{2})' -f $v.DisplayVersion, $v.CurrentBuildNumber, $v.UBR
Output:
Version 21H2 (Build 19044.1645)
UBR means Update Build Revision

Related

Not able to start Minikube - with HyperV

I have been consistently getting above error, I am not able to understand what's wrong when it was working till date. I tried in powershell with following command no luck #(Get-Module -ListAvailable hyper-v).Name | Get-Unique
But I can see Hyper-v enabled and can see by navigating Hyper-v manager window.
System Info:
Minikube version 1.12.3
Windows powershell exists
Hyper-V enabled
WSL2 installed on Windows 10 OS
When I execute below command in PowerShell I get below response
Whereas when I try executing command Get-Module -Name Hyper-V -ListAvailable no output available.
PS C:\WINDOWS\system32> #(Get-Command Get-VM).ModuleName
Hyper-V
Are you using Windows 10 Home or Enterprise/Pro version? I faced the similar issue when I tried it on Windows 10 Home version and came to know that Microsoft-Hyper-V-Management-PowerShell is not available in Windows 10 home. See this link. It worked when I tried it in Enterprise version. Hope this works for you.

How can I find out whether Win10 was newly installed or upgraded from Win7?

I want to find out whether my windows 10 is newly installed or it is upgraded from win7. Is there any mechanism or any way to find out this problem? If it has a solution please let me know.
Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\Setup
If you see an Upgrade key/folder under this location, then the system
underwent an upgrade from an older version of Windows
To see the old Windows build number, look at the value of
DownlevelBuildNumber. A value of 6.1.7601 means the system upgraded
from Windows 7 (a value of 10.0.##### means it upgraded from some
build of Windows 10)
If the Upgrade key/folder does not exist, then the system has a clean
Windows installation
Well. Its a bit tricky to find out.
You can find the installation date of your Windows 10 using the below command,
systeminfo | find /i "install date"
However, if you had upgraded your Windows from a lower to a higher version, you'll only see the date when the earlier version was installed and not when the latest version was installed or upgraded.
Hope this helps!

How to update version of command processor (cmd.exe)?

How to update version of command processor (cmd.exe)?
I've searched but I can only find stuff about updating Windows from command prompt and nowhere how to update command processor (cmd.exe).
Upgrade to Windows 10.
Versions of CMD are shipped as part of Windows. To update CMD, you must update Windows.
Very occasionally, a change is pushed out to CMD via Windows Update, usually as a security or compatibility patch, but usually the only way to get a new version is to get a new version of Windows.
For example, my version of cmd is:
D:\>cmd /ver
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
Version 6.3.9600 is also the Windows version number for Windows 8.1, which is my OS.
You don't. If Microsoft pushes out an update for CMD.exe then you will
get a new version of it. – Squashman 1 min ago

Windows 8.1 Robocopy Running on Windows 7

I would like to copy the Robocopy.exe file from a Windows 8.1 system and run it on a Windows 7 PC. Both PC's are running the 64bit variant of their respective OS. Is this possible in any way?
At present I just get the error that it "is not a valid Win32 application".
The reason I wish to run it is because the newer version has the /J switch.
This doesn't work. You can't run programs from a newer Windows version in an older Windows version. A you already noticed you get the is not a valid Win32 application error because the new exe is compiled for the higher Windows version (You can see this in Depends.exe under OS Ver).

Cannot install java_ee_sdk-7-jdk7-windows-x64.exe on fresh Windows 7 Ultimate

When I try to execute the installer, it starts "Extracting Bundled Java SDK ..." and then fails with "Error: Could not find the required version of the Java(TM) 2 Runrime Environment in '(null)'.".
What can I do? The OS is a Windows 7 Ultimate (just installed), virtualized with KVM under an Ubuntu 13.10.
Firefox and LibreOffice could be installed without any problem.
The pre requisite for JavaEE sdk7 installer is to have Jdk 7. So make sure, your environment variable path is pointing to JDK7\bin folder. And check java -version in command prompt, it should show you jdk 7 is current version in your system.
If both of the above are correct and it still doesn't work, then donot double click on the exe file directly, install it from command prompt, by giving location for JRE7 and
helping the installer to find jar files of JRE7, see below:
D:\installables>java_ee_sdk-7-jdk7-windows-x64.exe -j "C:\
Program Files\Java\jre7"
I had same problem, but this worked for me.

Resources