Summary: Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell to reverse strings. Hey, Scripting Guy! I am working with Windows PowerShell, and I need to reverse a string. I am surprised there is no reverse method in the string class. It seems like a major oversight. Anyway, can you show me how to…
PowerTip: Display Network Adapter Binding
Summary: Use Windows PowerShell to display network adapter binding. How can I use Windows PowerShell to display a list of network adapter binding? In Windows 10, use the Get-NetworkAdapterBinding cmdlet in Windows PowerShell 5.0.
Long String Running
Summary: Ed Wilson, Microsoft Scripting Guy, talks about using a compound string command. Microsoft Scripting Guy, Ed Wilson, is here. The other day, the Scripting Wife and I headed to Nashville for a couple of speaking engagements. We decided to head through Alabama instead of going through Atlanta for a couple of reasons. We have…
PowerTip: Create Pop-up Message with PowerShell
Summary: Use Windows PowerShell to easily create a pop-up message. How can I use Windows PowerShell to create a pop-up message? Use Out-GridView, and pipe your message string to it, for example: "popup message" | Out-GridView -Title "message box"
Creating Pop-ups by Using PowerShell
Summary: Guest blogger and PowerShell MVP, Chrissy LeMaire, talks about creating pop-ups with Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Welcome today a brand new guest blogger, Chrissy LeMaire. Chrissy is a systems engineer and PowerShell MVP. Always an avid scripter, she attended the Monad session at the Microsoft Professional Developers Conference in…
PowerTip: Reverse an Array with PowerShell
Summary: Learn how to reverse an array with Windows PowerShell. How can I use Windows PowerShell to reverse the order of an array stored in a variable? Use the static reverse method from the Array class, for example: $a = @(1,2,3) [array]::reverse($a)
Weekend Scripter: Exploring PowerShell Arrays
Summary: Ed Wilson, Microsoft Scripting Guy, talks about Exploring Windows PowerShell arrays. Microsoft Scripting Guy, Ed Wilson, is here. One of the problems I had with Windows PowerShell when I first learned it was handling arrays. Why? Because they were so easy. Well, they are easy, but they are also a bit confusing. Why? Because…
PowerTip: Combine Arrays in PowerShell
Summary: Learn how to combine two arrays in Windows PowerShell. How can I use Windows PowerShell to combine two arrays stored in two different variables? Use the + operator, for example: [array]$a = @('a','b','c') [array]$b = @(1,2,3) [array]$c = $a + $b
PowerShell Spotlight: November 2015
Summary: Guest blogger and PowerShell MVP, Teresa Wilson talks about Windows PowerShell community events. Microsoft Scripting Guy, Ed Wilson, is here. It is the last Saturday of October, and that means it is PowerShell Spotlight day with guest blogger, Teresa Wilson. Hello everyone. I hope you are having a scriptastic day! The MVP Summit starts…
PowerTip: Use PowerShell to Back Up System Databases
Summary: Use Windows PowerShell to back up system databases. How can I use Windows PowerShell to dynamically back up all of the system databases on my servers? Combining provider lookups with the Backup-SqlDatabase cmdlet makes this simple: $instances = @(‘KIRK’,’SPOCK’,’PICARD’,’RIKER’) foreach($instance in $instances){ $dbs = Get-ChildItem SQLSERVER:\SQL\$instance\DEFAULT\Databases -Force | Where-Object {$_.IsSystemObject -eq $true -and…