Internally, Active Directory stores all passwords as so-called NTLM Hashes. There are a number of security-analysis tools that can read and dump...
posts-powershell
Simple PowerShell Chat
Here’s a fun PowerShell script that you can use to create a simple multi-channel chat room. All you need is a network share where everyone has...
Testing Password Strength
In previous tips, we already talked about services such as haveIbeenpwned.com. They harvest leaked passwords from previous hacker attacks so you can...
Converting SecureString to Text
It can be very useful to be able to convert an encrypted SecureString back to a plain text. This way, for example, you can use PowerShell’s...
Embedding Binaries (Pictures, DLLs) in PowerShell Scripts
If your script requires external binary resources such as picture files or DLLs, you can of course ship them together with your script. You could,...
Built-In SSH support in Windows 10
In October 2018, a Windows 10 update added built-in SSH support to Windows 10. From now on, Windows 10 ships with a command-line tool called “ssh”....
Playing with Latest PowerShell Core Version
In the previous tip we illustrated how you can download a PowerShell script which automatically downloads the latest version of PowerShell Core....
Installing PowerShell Core
As you probably know, Windows PowerShell (the one shipping in Windows) is done, and all efforts go into development of the new cross-platform...
Finding Public IP Address
Here is a one-liner that retrieves your current public IP address: PS> Invoke-RestMethod -Uri http://ipinfo.io ip : 87.153.224.209 hostname :...
Real-Time Log Processing
PowerShell comes with a powerful yet simple way of monitoring file changes. Let’s assume you have a log file that changes every now and then....
Detecting Storage Issues
In Windows 10 and Windows Server 2016, PowerShell can access storage reliability data so you can find out whether there is something wrong with one...
Resetting Winsock
PowerShell can execute internal PowerShell commands and also regular console commands, so it’s not a bad thing to continue to use console...
Using Awesome Export-Excel Cmdlet (Part 5)
This is part 5 of our mini-series about the awesome and free “ImportExcel” PowerShell module by Doug Finke. Make sure you install the...
Using Awesome Export-Excel Cmdlet (Part 4)
This is part 4 of our mini-series about the awesome and free “ImportExcel” PowerShell module by Doug Finke. Make sure you install the...
Using Awesome Export-Excel Cmdlet (Part 3)
This is part 3 of our mini-series about the awesome and free “ImportExcel” PowerShell module by Doug Finke. Make sure you install the...
Using Awesome Export-Excel Cmdlet (Part 2)
This is part 2 of our mini-series about the awesome and free “ImportExcel” PowerShell module by Doug Finke. Make sure you install the...
Using Awesome Export-Excel Cmdlet (Part 1)
Doug Finke has created an awesome PowerShell module called ImportExcel which comes with all the commands you need to import and export data from and...
Auto-Creating a List of HTTP Response Codes
In the previous example we looked at how numeric HTTP response codes can automatically be converted to descriptive text, simply by converting them...
Converting HTTP Response Codes
In the previous example we created a small PowerShell function that checks web site availability, and as part of the test results, a HTTP response...
Test Web Site Availability
When a web site is unavailable, often the question is whether it’s you, or whether the web site is generally down for everyone else, too....
Unit Conversion via Web Service
Accessing RESTful web services is trivial for PowerShell: simply send your input data to a public web service, and receive the results. Here are...
Validating Active Directory Credentials
PowerShell can validate AD username and passwords against the Active Directory: Add-Type -AssemblyName System.DirectoryServices.AccountManagement...
Numbering Output (Part 1)
If you’d like to add an incrementing number to your output, here is a simple way: Get-Process | Select-Object -Property '#',...
Accepting Masked Passwords
If you ever write PowerShell functions that need to accept sensitive input such as passwords, make sure you allow users to submit SecureString...