From 2e26018a240ccfffdd22d172119f71b379cd6690 Mon Sep 17 00:00:00 2001 From: REALSDEALS <54169638+REALSDEALS@users.noreply.github.com> Date: Thu, 2 Nov 2023 12:11:58 +0100 Subject: [PATCH] Remove: Removed Powershell Removed: Powershell has been removed from the pcHealth script. This is due to a future archive of this repository. Read and/or see the changelog.md for more information. --- Documentation/changelog.md | 9 ++ Documentation/releases.md | 3 +- README.md | 6 +- Scripts/CMD/pcHealth.bat | 4 +- Scripts/PowerShell/pcHealth.ps1 | 149 -------------------------------- 5 files changed, 17 insertions(+), 154 deletions(-) delete mode 100644 Scripts/PowerShell/pcHealth.ps1 diff --git a/Documentation/changelog.md b/Documentation/changelog.md index 422d2b1..d72f9ce 100644 --- a/Documentation/changelog.md +++ b/Documentation/changelog.md @@ -1,5 +1,14 @@ # Changelog.md - pcHealth +## 02-11-2023 - @REALSDEALS + +In this release the Powershell capability has been removed from the script. +This is due to the fact that .bat won't be supported in upcoming releases of Windows. Or the rumors are there that it won't be supported anymore. + +Because of the fact that .bat might not survive the next Windows release (W12.) I will be archiving this repository and will be working on a new project regarding the functionality of pcHealth but in Powershell. This repository will be named pcHealthPlus. + +I'm currently in the first phase of the project, so it will take some time before it will be released. + ## 29-03-2023 - @REALSDEALS Added some new functionality to the PowerShell script. diff --git a/Documentation/releases.md b/Documentation/releases.md index 05ce923..e9a1f75 100644 --- a/Documentation/releases.md +++ b/Documentation/releases.md @@ -5,7 +5,7 @@ For now only the version names will be displayed, in the future there might be e # Current Version(s) -Full Release - v1.5.9 (Stable) +Full Release - v1.6.0 (Stable) Beta Release - v1.6.5-beta Alpha Release - v0.2.1-alpha (PowerShell) @@ -15,6 +15,7 @@ Here you can see a overview of the older version. ### Full Release(s) +- Full Release - v1.6.0 - Full Release - v1.5.9 - Full Release - v1.5.8 - Full Release - v1.5.6 diff --git a/README.md b/README.md index 5fab4a4..fe418af 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,14 @@ It really means a lot to me! If you have any tips/tricks or remarks? Feel free to contact me on discord: REALSDEALS#6353 +Sidenote: since version 1.6 and onwards, the Powershell section has been removed from the script. To read more about this decision, please read the changelog. + ### More information regarding on how to install and use it: - Download this repository. - Extract it to the desktop to be sure that it will run with full permissions. -- Open the `scripts` folder and choose your preferred method by choosing the `CMD` or `PowerShell` folder. -- Open the file in the chosen folder and read the rules carefully. +- Open the `scripts` folder and open the CMD folder in there. +- Open the file in the CMD folder and read the rules/commands carefully. - Enter in the number of the desired command that you want to run. (Number + ENTER) - Patiently wait for the script to finish. - You can chose, depending on the command, what you want to do next. (Open logs ect.) diff --git a/Scripts/CMD/pcHealth.bat b/Scripts/CMD/pcHealth.bat index aaeaa3a..a3ff085 100644 --- a/Scripts/CMD/pcHealth.bat +++ b/Scripts/CMD/pcHealth.bat @@ -29,7 +29,7 @@ if '%errorlevel%' NEQ '0' ( :-------------------------------------- :: MainCode @echo off -title pcHealth - Check your PC's Health! - version 1.6.5-beta +title pcHealth - Check your PC's Health! - version 1.7.0 cd / color D cls @@ -42,7 +42,7 @@ echo Thanks for downloading and using pcHealth! echo Please be sure that you are running this Batch file in Administrator mode. echo. 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.6.5-beta +echo You are now using version 1.7.0 of pcHealth. echo. echo %DATE%, %TIME% echo. diff --git a/Scripts/PowerShell/pcHealth.ps1 b/Scripts/PowerShell/pcHealth.ps1 deleted file mode 100644 index 4731b5f..0000000 --- a/Scripts/PowerShell/pcHealth.ps1 +++ /dev/null @@ -1,149 +0,0 @@ -Clear-Host -Write-Host "" -Write-Host "Thanks for downloading and using pcHealth!" -Write-Host "" -Write-Host "This PowerShell script is made by REALSDEALS" -Write-Host "Licensed under GNU-3 (You are free to use, but not to change or to remove this line.)" -Write-Host "" -Write-Host "You are now using PowerShell version v0.2.1-alpha" -Write-Host "" -cd c:/ - -function isAdmin { - #Check if the user runs this script as Administrator. - If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { - # Relaunch as an elevated process: - Start-Process powershell.exe "-File", ('"{0}"' -f $MyInvocation.MyCommand.Path) -Verb RunAs - exit - } - # Now running elevated so launch the script: - & "c:\long path name\script name.ps1" "Long Argument 1" "Long Argument 2" -} - -function Show-Menu { - param ( - [string]$Title = 'pcHealth | v0.2.1-alpha' - ) - Clear-Host - Write-Host "" - Write-Host "================ $Title ================" - Write-Host "" - Write-Host "1: ENTER '1' TO GATHER SYSTEM INFORMATION" - Write-Host "2: ENTER '2' TO CHECK WHICH CPU AND GPU ARE IN THE SYSTEM" - Write-Host "3: ENTER '3' RUN A SYSTEM SCAN" - Write-Host "4: ENTER '4' TO TRY AND REPAIR CORRUPT FILES" - Write-Host "5: ENTER '5' TO RUN A SYSTEM SCAN AND START REPAIRING IN ONE GO" - Write-Host "6: ENTER '6' TO OPEN THE GENERATED REPORT FROM FUNCTION 5" - Write-Host "7: ENTER '7' TO GENERATE A BATTERY REPORT" - Write-Host "8: ENTER '8' TO OPEN WINDOWS UPDATE(S)" - Write-Host "9: ENTER '9' TO START A SHORT PING TEST" - Write-Host "10: ENTER '10' TO START A CONTINUES PING TEST" - Write-Host "11: ENTER '11' TO RE-OPEN THE BATTERY REPORT" - Write-Host "12: ENTER '12' TO RE-OPEN THE CBS.log (DISM LOG)" - Write-Host "13: ENTER '13' TO GET YOUR NINITE (INCLUDES EDGE, CHROME, VLC AND 7ZIP)" - Write-Host "14: ENTER '14' TO RESTART OR SHUTDOWN YOUR LAPTOP/PC" - Write-Host "15: ENTER '15' TO SHUTDOWN YOUR LAPTOP/PC" - Write-Host "16: ENTER 'Q' TO CLOSE THIS POWERSHELL SCRIPT" - Write-Host "" -} -do { - Show-Menu - $selection = Read-Host "Enter the number of the instance that you want to run." - switch ($selection) { - '1' { - Write-Host "" - Write-Host "Computer information will be generated..." - Get-ComputerInfo - Write-Host "" - pause - } '2' { - Write-Host "" - Write-Host "Your CPU information:" - Get-WmiObject -Class Win32_Processor -ComputerName $env:COMPUTERNAME - Write-Host "" - Write-Host "Your GPU information:" - Get-WmiObject win32_VideoController | Format-List Name - Write-Host "" - pause - } '3' { - Write-Host "" - sfc /scannow - Write-Host "" - pause - } '4' { - 'Sorry, this option has no function yet.' - pause - } '5' { - Write-Host "" - Write-Host "This could take a hot minute, script will run in the background." - Write-Host "When 'Press ENTER to continue' displays, you can press 'ENTER' to return to the main menu of the script." - Write-Host "" - $ReturnTo = cd / - $GenDir = mkdir pcHealthLog - $Path = 'C:\pcHealthLog' - $Date = get-date -format "dd-MM-yyyy" - $LogFile = "C:\pcHealthLog\LogResults.txt" - start-job -name DiskCheck -ScriptBlock { CHKDSK C: } - start-job -name DISM -ScriptBlock { DISM /Online /Cleanup-Image /RestoreHealth } - start-job -name SFC -ScriptBlock { sfc /scannow } - if (test-path $path) { write-host "`$Path was found, exporting logs to $Path" } else { new-item C:\pcHealthLog -itemtype directory; Write-Host "$Path not found, creating $Path and exporting logs" } - wait-job -name DiskCheck, DISM, SFC | receive-job | out-file -FilePath $LogFile - Write-Host "" - Write-Host "Don't forget to run script function 6 to open the log." - Write-Host "" - Pause - } '6' { - Write-Host "" - Write-Host "Attempting to open the log file..." - Write-Host "" - $ReturnTo = cd / - start "C:\pcHealthLog\LogResults.txt" - Write-Host "" - Pause - }'7' { - Write-Host "" - powercfg /batteryreport - start "C:\battery-report.html" - Write-Host "" - pause - } '8' { - Write-Host "" - control update - Write-Host "" - pause - } '9' { - Write-Host "" - ping 8.8.8.8 - Write-Host "" - pause - } '10' { - Write-Host "" - ping 8.8.8.8 -t -l 256 - Write-Host "" - pause - } '11' { - 'Sorry, this option has no function yet.' - pause - } '12' { - 'Sorry, this option has no function yet.' - pause - } '13' { - Write-Host "" - start explorer.exe "https://ninite.com/7zip-chrome-edge-vlc/ninite.exe" - pause - } '14' { - Write-Host "" - Write-Host "Your system will be restarted." - Restart-Computer - Write-Host "" - pause - } '15' { - Write-Host "" - Write-Host "pc-Health.ps will be terminated." - Write-Host "" - pause - } - } -} -until ($selection -eq 'q') -Pause