Skip to content

Commit

Permalink
Merge pull request #88 from REALSDEALS/REALSDEALS
Browse files Browse the repository at this point in the history
Add: Added License Key Grabber
  • Loading branch information
REALSDEALS authored Jan 3, 2022
2 parents 16bc462 + 6cc69b3 commit a88d365
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 23 deletions.
11 changes: 11 additions & 0 deletions Documentation/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog.md - pcHealth

## 03-01-2022

After a small break we continue working on the script.
Thanks to a colleague of me, I have added the license key function to the script.

He provided the codeline and asked if I could implement it.
So credits were credits due.

This function is in the new beta release.
later this week I will push a official release.

## 24-12-2021

Today we have reworked the visual representation of the script.
Expand Down
3 changes: 2 additions & 1 deletion Documentation/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ For now only the version names will be displayed, in the future there might be e

# Current Version(s)

Beta Release - v1.3.5-beta
Beta Release - v1.3.6-beta
Full Release - v1.3.0 (Stable)
Alpha Release - v0.1.1-alpha (PowerShell)

Expand All @@ -25,6 +25,7 @@ Here you can see a overview of the older version.

### Beta Release(s)

- Beta Release - v1.3.5-beta
- Beta Release - v1.3.4-beta
- Beta Release - v1.3.3-beta
- Beta Release - v1.3.2-beta
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,16 @@ When entered number 12 a download will start, this download will install:

Edge will be installed so you have the latest version of it, after a clean install this is recommanded.

### Log off, restart and/or shutdown - Number 13
## Get your Windows License Key - Number 13

Want to find your systems license key?
You can, just run this simple line of code.

### Log off, restart and/or shutdown - Number 14

When entering this number you get to choose if you want to log off, restart or shutdown your pc.

### Close the Script - Number 14
### Close the Script - Number 15

With number 14 you can close the script.

Expand Down
54 changes: 34 additions & 20 deletions Scripts/CMD/pcHealth.bat
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if '%errorlevel%' NEQ '0' (
:--------------------------------------
:: MainCode
@echo off
title pcHealth - Check your PC's Health! //_\\ v1.3.5-beta
title pcHealth - Check your PC's Health! //_\\ v1.3.6-beta
cd /
color A
cls
Expand All @@ -41,7 +41,7 @@ echo.
echo Thanks for downloading and using pcHealth!
echo Please be sure that you are running this Batch file in Administrator mode.
echo Made by REALSDEALS - Licensed under GNU-3 (You are free to use, but not to change or to remove this line.)
echo You are now using version 1.3.5-beta
echo You are now using version 1.3.6-beta
echo.
echo %DATE%, %TIME%
echo.
Expand All @@ -58,8 +58,9 @@ echo Enter number 9 to start a continues ping test.
echo Enter number 10 to re-open the generated battery report file.
echo Enter number 11 to re-open the CBS.log (AKA DISM.log)
echo Enter number 12 to get your Ninite! Includes Edge, Chrome, VLC and 7Zip.
echo Enter number 13 to shutdown, reboot or log off from your PC/laptop.
echo Enter number 14 to close this batch file.
echo Enter number 13 to see your systems Windows License key.
echo Enter number 14 to shutdown, reboot or log off from your PC/laptop.
echo Enter number 15 to close this batch file.
echo ...........................................................
echo.
SET /P A=Type one of the numbers from the menu above to run the desired function, then press ENTER. Enter:
Expand All @@ -75,8 +76,9 @@ IF %A%==9 GOTO CONTINUESPING
IF %A%==10 GOTO BATOPEN
IF %A%==11 GOTO OPENCBSLOG
IF %A%==12 GOTO NINITE
IF %A%==13 GOTO RESHUT
IF %A%==14 GOTO CLOSE
IF %A%==13 GOTO LICENSE
IF %A%==14 GOTO RESHUT
IF %A%==15 GOTO CLOSE

:SYSINFO
cls
Expand Down Expand Up @@ -242,23 +244,35 @@ SET /P Q=Enter number 1 to return to the main menu, enter number 2 to exit. Ente
IF %Q%==1 GOTO MENU
IF %Q%==2 GOTO CLOSE

:LICENSE
cls
color C
echo.
echo "Your systems license key:"
wmic path SoftwareLicensingService get OA3xOriginalProductKey
pause
echo.
SET /p R=If you want to return to the menu, enter number 1. To close the script, enter the number 2.
IF %R%==1 GOTO MENU
IF %R%==2 GOTO CLOSE

:RESHUT
cls
color C
echo.
SET /P R=If you want to log off from your PC/Laptop enter number 1, to restart enter number 2, to shutdown enter number 3 and to return to the main menu enter number 4. Enter:
IF %R%==1 GOTO LOGOFF1
IF %R%==2 GOTO RESTART2
IF %R%==3 GOTO SHUTDOWN3
IF %R%==4 GOTO CLOSE
SET /P S=If you want to log off from your PC/Laptop enter number 1, to restart enter number 2, to shutdown enter number 3 and to return to the main menu enter number 4. Enter:
IF %S%==1 GOTO LOGOFF1
IF %S%==2 GOTO RESTART2
IF %S%==3 GOTO SHUTDOWN3
IF %S%==4 GOTO CLOSE

:LOGOFF1
cls
color C
echo.
SET /P S=Are you sure that you want to log off your PC? Enter number 1, enter number 2 if you want to return to the menu. Enter:
IF %S%==1 GOTO LOGOFFCONFIRM1
IF %S%==2 GOTO MENU
SET /P T=Are you sure that you want to log off your PC? Enter number 1, enter number 2 if you want to return to the menu. Enter:
IF %T%==1 GOTO LOGOFFCONFIRM1
IF %T%==2 GOTO MENU

:LOGOFFCONFIRM1
cls
Expand All @@ -270,9 +284,9 @@ EXIT /B
cls
color C
echo.
SET /P T=Are you sure that you want to restart your PC? Enter number 1, to do so. Enter number 2 to return to the main menu. Enter:
IF %T%==1 GOTO RESTARTCONFIRM2
IF %T%==2 GOTO MENU
SET /P U=Are you sure that you want to restart your PC? Enter number 1, to do so. Enter number 2 to return to the main menu. Enter:
IF %U%==1 GOTO RESTARTCONFIRM2
IF %U%==2 GOTO MENU

:RESTARTCONFIRM2
cls
Expand All @@ -284,9 +298,9 @@ EXIT /B
cls
color C
echo.
SET /P U=Are you sure that you want to shutdown your PC? Enter number 1, to continue. Enter number 2 to return to the main menu. Enter:
IF %U%==1 GOTO SHUTDOWNCONFIRM3
IF %U%==2 GOTO MENU
SET /P V=Are you sure that you want to shutdown your PC? Enter number 1, to continue. Enter number 2 to return to the main menu. Enter:
IF %V%==1 GOTO SHUTDOWNCONFIRM3
IF %V%==2 GOTO MENU

:SHUTDOWNCONFIRM3
cls
Expand Down

0 comments on commit a88d365

Please sign in to comment.