In this post we provide a quick example of how we can use PowerShell to retrieve all Windows updates and patches. Get-HotFix Not Returning All Installed KBs The first thought that springs to mind is simply to run Get-Hotfix. However … Continue reading →
Here we explain how to determine and check the PowerShell version. Why Check the PowerShell Version? It’s important to know which version of PowerShell an endpoint is running since some cmdlets are only supported in specific versions of PowerShell. And … Continue reading →
This post contains an example of how we can use PowerShell to display an advanced toast notification. In this notification we will be adding a custom icon and a hero image. To do this we’ll initially use the ToastImageAndText02 XML … Continue reading →
This post contains an example of how we can use PowerShell to display a basic toast notification. If you would like more advanced features, see use PowerShell to display an advanced toast notification. When we construct a toast notification, we … Continue reading →
This blog provides an example of how we can implement text-to-speech using PowerShell and the speech synthesizer. Text-to-Speech using PowerShell I remember the early days of making a computer convert text to speech in a robotic voice – there was … Continue reading →
This is a quick example of how we can use PowerShell to extract Azure Active Directory device status from dsregcmd. Sometimes we need to run a script on a device to troubleshoot devices by using the dsregcmd command, or indeed … Continue reading →
Here we provide an example of how we can use PowerShell to set Windows 10 desktop wallpaper based on screen resolution. We essentially add supported screen resolutions and associated images to a hashtable called wallpaperImages (you need to add your … Continue reading →
This blog provides a simple example of using PowerShell select-string to match regular expressions. Select-string and regular expressions come in really useful when we want to extract specific data from a string that matches a particular pattern. Consider this URL: … Continue reading →
This blog provides a simple example of using PowerShell to read and write JSON. PowerShell and JSON – Objects, Arrays, Hashtables and Ordering For the context of this post, think of an example JSON object being a “school”, a JSON … Continue reading →
This blog provides a simple example of using PowerShell to read and write XML nodes and attribute names. Using PowerShell to Write XML In this example, we first create a new [System.Xml.XmlDocument] object to represent our XML document. We then … Continue reading →