This is a simple one-liner enabling us to use PowerShell to search Group Policy for a specific setting. It’s always frustrating when we can’t find which policy a particular configuration is coming from. An example is trying to find a … Continue reading →
This blog provides an example of how we can use PowerShell to debug slow GPO processing. I wrote it a couple of years ago when we needed to debug why some machines were taking so long to log in. They … Continue reading →
This is a quick blog post to highlight why the PowerShell Get-ItemPropertyValue error is not suppressed. First, an explainer. Consider we want to read a registry value under HKLM:\Software\Alkane called Test. We can simply read it like so: $value = … Continue reading →
This post provides a free MSIX Packaging tool for the Package Support Framework (PSF), and is hosted in the PowerShell Gallery. Most of us already know that native MSIX has its limitations (at time of writing) in terms of compatibility … Continue reading →
This post contains a PowerShell Active Directory people picker, which is useful when we develop PowerShell forms that require searching for Active Directory users via their display name or username. It’s a very similar concept to our PowerShell Active Directory … Continue reading →
This post provides an example of a PowerShell Active Directory Group Picker. You can also find a similar example of our PowerShell Active Directory People Picker. When using one of my PowerShell GUI tools, we needed to select a valid … Continue reading →
This blog discusses how we can use PowerShell to monitor CPU and memory usage. I was having a few issues recently on a web server whereby the server was becoming unresponsive due to either high CPU or memory usage. It … Continue reading →
Have you ever seen the PowerShell Add-Content error The Process Cannot Access The File? I stumbled upon it a while ago when I wrote a simple PowerShell logging function. Originally the script used the Add-Content cmdlet to write and append … Continue reading →
This blog explains setting a timeout in PowerShell scripts to prevent hanging. There’s nothing worse than iterating through a list of commands and the whole workflow grinds to a halt because one command is hanging. But resolving the issue is … Continue reading →
This blog post provides an example of how we can call a PowerShell function in another PowerShell script. Let’s first assume that we have a function in a script called AlkaneFunctions.ps1 that enables us to install an MSI using PowerShell … Continue reading →