-
ConvertFrom-Json
Understanding the Power of ConvertFrom-Json in PowerShell Welcome back to Wahmans PowerShell Blog! Today, we’re diving into the ConvertFrom-Json cmdlet — a powerful tool in PowerShell that simplifies the transformation of JSON-formatted strings into PowerShell objects. As per Microsoft’s documentation: ConvertFrom-Json – Converts a JSON-formatted string to a custom object or a hash table. ConvertFrom-Json…
-
Get-FileHash
PowerShell Cmdlet Spotlight: Get-FileHash Welcome back to Wahman’s PowerShell Blog! Today we’re going to take a closer look at an incredibly useful cmdlet: Get-FileHash. According to the Microsoft documentation: Computes the hash value for a file by using a specified hash algorithm. This cmdlet is a powerful tool when it comes to verifying file integrity,…
-
Set-Variable
Exploring the Power of Set-Variable in PowerShell Welcome back to Wahmans PowerShell blog! Today, we’re diving into a versatile and often underutilized cmdlet in PowerShell: Set-Variable. According to Microsoft’s documentation, Set-Variable "sets the value of a variable. Creates the variable if one with the requested name does not exist." Sounds simple, right? But there’s more…
-
Wait-Job
PowerShell Cmdlet Deep Dive: Wait-Job Welcome back to Wahmans PowerShell Blog! Today, we’re diving into a fundamental yet powerful cmdlet when it comes to managing background jobs in PowerShell — Wait-Job. What is Wait-Job? According to Microsoft’s documentation, Wait-Job “waits until one or all of the PowerShell jobs running in the session are in a…
-
Get-CimInstance
Exploring Get-CimInstance in PowerShell Welcome back to Wahmans Powershell blog! Today, we’re diving into a very useful cmdlet: Get-CimInstance. This cmdlet allows you to retrieve CIM (Common Information Model) instances from local and remote systems. It is incredibly powerful when working with system management data such as hardware, OS information, services, and more. According to…
-
Remove-CimSession
Understanding the PowerShell Cmdlet: Remove-CimSession Welcome back to Wahmans Powershell blog! Today, we will dive into a useful cmdlet in PowerShell for managing CIM sessions: Remove-CimSession. This cmdlet is an essential tool for cleaning up CIM (Common Information Model) sessions when automation or remote management tasks are completed. It’s especially relevant in scripts that utilize…