4 Windows options that do not exist until you employ PowerShell

Your Windows pc can do way over Microsoft’s graphical interface reveals. Hidden beneath the acquainted point-and-click expertise lies PowerShell, a powerful command-line tool that unlocks features fully absent from Windows’ common menus and settings. While Microsoft has spent many years perfecting the visible interface of Windows, a few of its most sensible instruments stay accessible solely via the command line.
Many of those aren’t obscure developer options or advanced system administration instruments. The actuality is that Windows offers no graphical solution to accomplish these options/duties, regardless of having the underlying performance constructed proper into the working system. Microsoft made these deliberate design selections to maintain the interface clear and user-friendly. If each PowerShell operate had a GUI equal, Windows would turn into overwhelmingly advanced with too many instruments cluttering the expertise.
Instead, these options are restricted to the command line interface, leaving thousands and thousands of individuals unaware that these capabilities even exist.
Reveal Wi-Fi passwords out of your pc
Instantly reveal saved wi-fi networks
Have you ever wanted to share your Wi-Fi password with a guest, however forgot what it’s? Your Windows pc really shops each Wi-Fi password you’ve got ever used, however Microsoft offers no straightforward solution to see them via the common interface. Sure, you’ll be able to dig via the Control Panel to search out the password of your at present related community, however what about all these different networks you’ve got related to through the years?
Thankfully, Windows offers us with the netsh wlan present profiles command, which lists all saved wi-fi community profiles on the pc. With a couple of extra instructions stitched via a pipeline, we are able to conveniently get all of the Wi-Fi passwords saved on our pc. The command may look intimidating at first, nevertheless it’s surprisingly easy when you understand pipelines, cmdlets, and parameters. Here’s the command:
(netsh wlan present profiles) | Select-String "All User Profile" | %{$identify=$_.Line.Split(':')[1].Trim().Replace('"',''); $_} | %{(netsh wlan present profile identify="$identify" key=clear)} | Select-String "Key Content" | %{$password=$_.Line.Split(':')[1].Trim(); [PSCustomObject]@{WIFI_NAME=$identify; PASSWORD=$password}}
This command lists all of your Wi-Fi profiles, then retrieves the password for every one. Within seconds, you may see a neat checklist displaying each community identify alongside its password. I’ve used this numerous instances when organising new gadgets or serving to pals hook up with networks I’d forgotten about.
I don’t sort this command each time; I retailer it as a PS1 file (a file saved to run PowerShell scripts) and preserve it saved in a folder. You can even use AutoHotkey to keybind PowerShell commands for fast entry for those who suppose you’ll use this or different objects on the checklist steadily.
Find duplicate information consuming up your storage
Save house by eradicating duplicates
Many of us have messy Downloads folders. Mine actually was, till I found this subsequent PowerShell characteristic. Windows has no built-in solution to discover duplicate information via its common interface, which implies most individuals accumulate a number of copies of the identical paperwork, pictures, and movies with out realizing it.
PowerShell can clear up this downside utilizing a single pipeline command:
Get-ChildItem -File | Group-Object Length | Where-Object {$*.Count -gt 1} | ForEach-Object Get-FileHash | Group-Object Hash | Where-Object {$*.Count -gt 1} | ForEach-Object { Write-Host "Duplicate information:"; $*.Group.Path; Write-Host "---" }
This command calculates a singular hash for every file’s content material, which implies it’ll catch true duplicates even when they’ve totally different names. I usually run this command on my Downloads folder, and I’m at all times amazed by how a lot house I can reclaim by eradicating duplicates.
Windows does not embody this performance in its GUI as a result of duplicate detection may be resource-intensive, particularly for giant information. Microsoft seemingly determined that the majority customers would not want this characteristic typically sufficient to warrant the interface complexity.
Test your web connection to a number of websites concurrently
Pinpoint slowdowns past pace assessments
When your web feels sluggish or unreliable, most individuals instinctively run a speed test. But these assessments solely let you know about your connection to 1 server. What if the issue is with particular web sites or providers? Windows has no built-in GUI instrument for testing connectivity to a number of websites concurrently, however PowerShell makes this extremely straightforward.
The easy Test-Connection command can verify a number of locations in a single operation:
Test-Connection google.com, fb.com, youtube.com, microsoft.com
This command pings all 4 websites concurrently and reveals you the response time for every. You’ll instantly see if one specific service is having issues or in case your web connection is mostly sluggish. I exploit this each time my web feels flaky, as a result of it provides me a a lot clearer image of what is really occurring.
You may also make the check extra thorough by specifying what number of instances to ping every website:
Test-Connection google.com, cloudflare.com, amazon.com -Count 10
This sends 10 pings to every website, supplying you with knowledge you can common out. If one website constantly reveals excessive response instances whereas others are nice, you realize the issue is not your web connection.
Verify downloaded information are reputable and secure
Protect your self with file hash checks
Many of us prefer downloading executables outside the Microsoft Store. To be sure that our downloads are secure, we want a solution to confirm if the information come instantly from the builders. Many reputable software program suppliers publish hash values alongside their downloads. These are distinctive fingerprints that change if even a single little bit of the file is totally different. Sadly, Windows does not present any GUI instrument for verifying file hashes.
However, it does have the Get-FileHash command, which permits us to view the file hash of your obtain (changing “filename.exe” with the precise filename):
Get-FileHash "filename.exe"
The command returns a SHA256 hash you can evaluate towards the official hash offered by the software program writer. If they match, you realize the file is precisely what the writer meant. If they do not match, one thing went improper through the obtain, or the file has been tampered with.
PowerShell opens doorways that the Windows GUI retains locked
These few PowerShell options reveal how a lot highly effective performance lies hidden beneath Windows’ pleasant interface. PowerShell is not as intimidating because it might sound. I solely know a handful of instructions, however that is sufficient to entry Windows options that many individuals assume Microsoft by no means included as a part of Windows.
These capabilities aren’t lacking in any respect. They’re simply ready behind a command-line interface you may by no means discover. Learning these primary instructions turns on a regular basis frustrations into fast, one-line options. Next time you are annoyed by a Windows GUI limitation, do not forget that PowerShell might need precisely what you want.
