-
Unregister-Event
Understanding Unregister-Event in PowerShell Welcome back to Wahmans PowerShell Blog! Today, we’re diving into a cmdlet that helps you clean up and control runtime events in your PowerShell sessions: Unregister-Event. The official Microsoft description for Unregister-Event says: Cancels an event subscription. This cmdlet is used to remove event subscriptions that were previously registered using Register-ObjectEvent,…
-
Tee-Object
Using Tee-Object in PowerShell: Capture and Continue the Pipeline Welcome back to Wahmans Powershell Blog! Today, we’re diving into a really handy and sometimes overlooked cmdlet: Tee-Object. According to the official Microsoft Docs, Tee-Object “Saves command output in a file or variable and also sends it down the pipeline.” What does that mean in practice?…
-
Disable-JobTrigger
Mastering PowerShell Cmdlets: Disable-JobTrigger Welcome back to Wahmans PowerShell blog! Today, we’re diving into another useful cmdlet in the PowerShell toolbox: Disable-JobTrigger. If you’re working with scheduled jobs in PowerShell, knowing how to pause or prevent those jobs from automatically triggering is essential. Let’s explore how Disable-JobTrigger works with practical examples ranging from beginner to…
-
Set-Date
Mastering Set-Date in PowerShell Welcome back to Wahmans PowerShell Blog! Today, we’re diving into the Set-Date cmdlet. According to Microsoft, Set-Date “Changes the system time on the computer to a time that you specify.” This powerful cmdlet is useful for time adjustments, tasks related to system resets, and more advanced date manipulations in your scripts….
-
Join-String
Exploring the PowerShell Cmdlet: Join-String Welcome back to Wahman’s PowerShell Blog! Today, we are diving into the Join-String cmdlet — a powerful and flexible tool introduced in PowerShell 7. This cmdlet does exactly what its name suggests: it combines objects from the pipeline into a single string! Whether you’re a beginner just learning about PowerShell…
-
Set-ScheduledJobOption
PowerShell cmdlet deep-dive: Set-ScheduledJobOption Welcome back to Wahmans PowerShell blog! Today we are diving into the Set-ScheduledJobOption cmdlet. This powerful command is used to modify the options of a scheduled job in PowerShell. Whether you’re adjusting how often a job runs, managing the job’s behavior when the computer is on battery, or setting up logging…