This is a reminder to be mindful when copying and pasting code from an external source. I’ve been putting InjectionHunter to use and encountered “the straw that broke the camel’s back script’s bloc...
Converting Celsius to Fahrenheit Vice Versa
There are a few ways to converting Celsius to Fahrenheit, vice-versa, but here is a simple, advanced function that can do it for you. Simply enter the known degrees in the -Value parameter then sp...
PowerShell Core Get TCP Connections on macOS
Getting active TCP connections can tell about what might be going on between applications and systems, and even help with network troubleshooting. As of PowerShell Core 6.0.2, there is no built-in ...
OpenSSH Remoting Broken After PowerShell Upgrade
PowerShell Remoting in PowerShell Core has transformed the way Windows can communicate with other operating systems like Linux and macOS, and accomplish tasks using PowerShell and Bash as though yo...
iTunes Cleanup Library and Music Media
I’ve been writing a PowerShell module that handles the automation of live streaming on an iMac running macOS 10.13 using Wirecast, iTunes and some other tools. One of requirements is that the iTun...
Netstat as PowerShell Objects to Identify Port Usage
This post covers how to dump netstat output into Windows PowerShell objects for easier management and investigation purposes. This can be helpful if you’re trying to find out what port is being use...
Update PowerShell Core and dotnet Core Packages Using Homebrew
With the recent CVE bulletin, Microsoft Security Advisory CVE-2018-0875: Hash Collision can cause Denial of Service, it warrants us to update PowerShell Core to 6.0.2 and .NET Core to 2.0.6. This ...
Double Click command File to Execute PowerShell Core Script
Sometimes, double-clicking a file on the desktop to execute a script makes it much more convenient to accomplish something, even though it has its security implications. This post covers how to do ...
PowerShell Core Fixing path not found of Mounted SMB in macOS
Automation on the Mac is great, when it works. And it can, in this case. In this post, we’ll cover an issue where scripts resolving SMB paths fail with the ‘path not found’ error message, yet those...
Use PowerShell Core in VS Code
The movement to PowerShell Core is gaining popularity, along with the wide-spreading use of Visual Studio Code; especially as Microsoft has confirmed Windows PowerShell will no longer have new rele...