Tag Archives: Powershell

Using $PSDefaultParameterValues in PowerShell

Recently I saw someone posted a reply to one of my comments on a blog article that he had never heard of $PSDefaultParameterValues before now.  With that, I will give you a walkthrough of this feature added in PowerShell V3 … Continue reading

Posted in powershell, V3, V4 | Tagged , , , | 4 Comments

Give PowerShell a Voice Using The SpeechSynthesizer Class

Besides using PowerShell for the usual work related things, we can also have some fun with it by tapping into various .Net classes to do things such as letting PowerShell talk to us. There are quite a few examples of … Continue reading

Posted in powershell | Tagged , , , | 7 Comments

Checking Out The Where and ForEach Operators in PowerShell V4

#Requires –Version 4.0 With the release of PowerShell V4, we received the Desired State Configuration (DSC) module as the main piece as well as some other things, some known and some not known that well. One of those things is … Continue reading

Posted in powershell, V4 | Tagged , , , , | 15 Comments

Automatically Declining Itanium Updates in WSUS using PowerShell

Working with WSUS, I sometimes find myself declining the exact same type of updates each month after Patch Tuesday. Not surprisingly, a common trend of those updates involve having the word ‘’Itanium” somewhere in the update title.  Instead of having … Continue reading

Posted in powershell, WSUS | Tagged , , | 9 Comments

Restore a SQL Database Using SQL Server Management Objects (SMO) and PowerShell

At some point in your career with SQL, there may come a time to perform a restore of the database (and maybe transaction logs depending on your situation). Given that we covered how to back up a SQL database, we … Continue reading

Posted in powershell, SQL | Tagged , , , , | 1 Comment