Saving the Script as a File
- Open Notepad or any text editor of your choice.
- Copy the entire script above and paste it into your text editor.
- Save the file with the extension
.ps1, for example,NeoFetchLike.ps1.
Executing the Script in PowerShell
- Open PowerShell: Press
Windows + Xand select "Windows PowerShell (Admin)" or just "PowerShell" depending on your version of Windows. - Navigate to the Script Location: If your script is not in the current directory, use the
cdcommand to change to the directory where your script is saved. For example, if your script is saved inC:\Scripts, you would typecd C:\Scriptsand press Enter. - Execute the Script: Before executing scripts, you might need to change the PowerShell execution policy. To do this, run
Set-ExecutionPolicy RemoteSigned -Scope CurrentUserand agree to the prompt. Then, to run your script, type.\NeoFetchLike.ps1and press Enter.
This detailed script should provide a neofetch-like output in PowerShell, displaying key system information. You can customize the script further by adding or removing information based on what's most relevant to you.
