-
Add-History
Add-History: Working with PowerShell Session History Welcome back to Wahman’s PowerShell blog! In today’s post, we’ll dive into the Add-History cmdlet — a lesser-known, but incredibly useful tool in your PowerShell toolkit. According to Microsoft’s documentation, this cmdlet is used to append entries to the session history. In short, it gives you more control over…
-
Write-Output
Understanding the Power of Write-Output in PowerShell Welcome back to Wahmans Powershell blog! Today, we’re taking a close look at a fundamental, yet sometimes misunderstood cmdlet: Write-Output. According to Microsoft’s documentation, the Write-Output cmdlet “writes the specified objects to the pipeline.” This makes it an essential cmdlet for script output, debugging, logging, and working within…
-
New-WSManSessionOption
Welcome back to another post on Wahmans Powershell Blog! Today, we’re exploring a very useful cmdlet in the world of Windows PowerShell remoting: `New-WSManSessionOption`. This cmdlet might not be something you use daily, but it provides essential control when managing remote sessions using WS-Management (WinRM). ## What does `New-WSManSessionOption` do? According to Microsoft: > `New-WSManSessionOption`…
-
Invoke-RestMethod
Getting Started with Invoke-RestMethod in PowerShell Welcome back to Wahmans PowerShell blog! Today we’re diving into a super useful cmdlet that helps you interact with RESTful web services directly from PowerShell: Invoke-RestMethod. What is Invoke-RestMethod? As described by Microsoft, Invoke-RestMethod “sends an HTTP or HTTPS request to a RESTful web service.” That means if you’re…
-
Out-GridView
Exploring the Power of Out-GridView in PowerShell Welcome back to Wahmans Powershell Blog! Today we are going to dive into a handy and visually engaging cmdlet: Out-GridView. This cmdlet allows you to send output to an interactive data grid window, which is perfect for visual representation, filtering, and manual selection of results. As described by…
-
Select-String
Exploring the Power of Select-String in PowerShell Welcome back to Wahmans PowerShell Blog! Today we’re diving deep into a super handy cmdlet that many PowerShell users rely on when working with files and searching through content: Select-String. According to Microsoft’s documentation, the Select-String cmdlet “finds text in strings and files”. Think of it as PowerShell’s…