posts-powershell

Using Awesome Export-Excel Cmdlet (Part 5)

Converting HTTP Response Codes

Checking Website Availability with a PowerShell Function In the previous example we created a small PowerShell function that checks web site...

Using Awesome Export-Excel Cmdlet (Part 5)

Finding Hidden PowerShell Applications

The most widely known PowerShell hosts are certainly powershell.exe and powershell_ise.exe because they ship out-of-the-box. However, there can be...

Using Awesome Export-Excel Cmdlet (Part 5)

Using FileSystemWatcher Asynchronously

In the previous tip we looked at the FileSystemWatcher object and how it can monitor folders for changes. To not miss any changes, however, an...

Using Awesome Export-Excel Cmdlet (Part 5)

Finding PowerShell Named Pipes

Each PowerShell host running PowerShell 5 or better opens a “named pipe” that you can detect. The code below identifies these named pipes and...

Using Awesome Export-Excel Cmdlet (Part 5)

Using a Queue instead of a Recursion

Rather than calling functions recursively, you may at times want to use a Queue object that you can load with fresh tasks while you are unloading...

Using Awesome Export-Excel Cmdlet (Part 5)

Locking the Screen with PowerShell

Here is a PowerShell function called Lock-Screen that can lock the screen and prohibit user interaction. There can be a custom message, and the...

Using Awesome Export-Excel Cmdlet (Part 5)

Passing Arguments to Encoded Commands

Why Encode PowerShell Code? Encoding PowerShell code is a great way to run PowerShell code outside the PowerShell environment, i.e. in batch files....