New
#20
One more thing, just today as a test I copied that .bat file to a USB Thumb drive, it ran from that drive, didn't have to reside on the boot drive.
One more thing, just today as a test I copied that .bat file to a USB Thumb drive, it ran from that drive, didn't have to reside on the boot drive.
I've updated the batch file to cope with changes brought about by Version 20H2. The revised batch file is in
ReportOSVersion.bat post - TenForums
I use this batch file to set variables for use by other scripts [I use this batch file as a subroutine].
It still produces the same data.
Denis
Unfortunately the batch script does not work for detecting the info INSIDE an ISO
Any extension available to cope with this case too?
Does this provide the required information ?
Copy & Paste
the following command into aCMD Prompt
and pressEnter
.
Code:@echo off & echo. & for /f "usebackq delims=" %i in (`ver`) do (echo %i:) & echo. & PowerShell Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' ^| Format-List ^ @{L=' Current Major Version Number';E={;if([string]::IsNullOrWhiteSpace($_.CurrentMajorVersionNumber)) {'N/A'} else {$_.CurrentMajorVersionNumber}}}, ^ @{L=' Current Minor Version Number';E={;if([string]::IsNullOrWhiteSpace($_.CurrentMinorVersionNumber)) {'N/A'} else {$_.CurrentMinorVersionNumber}}}, ^ @{L=' Current Build' ;E={;if([string]::IsNullOrWhiteSpace($_.CurrentBuild)) {'N/A'} else {$_.CurrentBuild}}}, ^ @{L=' Current Build Number' ;E={;if([string]::IsNullOrWhiteSpace($_.CurrentBuildNumber)) {'N/A'} else {$_.CurrentBuildNumber}}}, ^ @{L=' UBR [Update Build Revision]' ;E={;if([string]::IsNullOrWhiteSpace($_.UBR)) {'N/A'} else {$_.UBR}}}, ^ @{L=' Base Build Revision Number' ;E={;if([string]::IsNullOrWhiteSpace($_.BaseBuildRevisionNumber)) {'N/A'} else {$_.BaseBuildRevisionNumber}}}, ^ @{L=' Build Branch' ;E={;if([string]::IsNullOrWhiteSpace($_.BuildBranch)) {'N/A'} else {$_.BuildBranch}}}, ^ @{L=' Build Lab' ;E={;if([string]::IsNullOrWhiteSpace($_.BuildLab)) {'N/A'} else {$_.BuildLab}}}, ^ @{L=' Build Lab Version [Extended]';E={;if([string]::IsNullOrWhiteSpace($_.BuildLabEx)) {'N/A'} else {$_.BuildLabEx}}}, ^ @{L=' Build GUID' ;E={;if([string]::IsNullOrWhiteSpace($_.BuildGUID)) {'N/A'} else {$_.BuildGUID}}} ^| ^ Out-String -Width 1000 -Stream ^| Where {$_.Trim().Length -gt 0} & echo. & pause & Exit
I hope this helps.
It is not designed to do so.
It makes no claim to be able to do anything other than what I explained that it could do.
It's not an extension, it's a completely different method. Well, several methods.
Consolidated post - Get Version of ISO, USB, disk, networked computer - post #10 - TenForums
I had already said all this in a post in your own thread. Yesterday.
Denis