Scripting Blog

A place to learn about PowerShell and share stories of automation

Change a PowerShell Preference Variable to Reveal Hidden Data

Summary: Change the $FormatEnumerationLimit Windows PowerShell preference variable and display more data in the console.   Microsoft Scripting Guy Ed Wilson here. It is approaching the holiday season in Charlotte, North Carolina, in the United States. From now until the middle of January, 2012, many companies are on “IT lockdown&...

Query AD for Computers and Use Ping to Determine Status

Summary: Learn how to use Windows PowerShell to query Active Directory for computers, ping for status, and display in green/red.   Microsoft Scripting Guy Ed Wilson here. While the Scripting Wife and I were out in California speaking to the Microsoft Premier Field Engineers (PFE) about Windows PowerShell, a question arose. The PFE said he...

Use the PowerShell Passthru Parameter and Get Back Objects

Summary: Learn how to use the passthru parameter in Windows PowerShell to return objects from commands and allow more management tools.   Hey, Scripting Guy! I have got a rather curious question that I have not been able to find anything about. What is up with the passthru parameter? I mean, I see it on some commands, and not on other ...

Learn How to Manage Remote PowerShell Sessions

Summary: Microsoft Scripting Guy Ed Wilson discusses how to manage remote Windows PowerShell sessions.   Hey, Scripting Guy! I can see where being able to run a command on a remote computer might be kind of cool. But more often than not, I need to actually sit at the console of the remote computer. For this, I have been using remote ...

Configure PowerShell Remoting and Use Remote Commands

Summary: Learn how to configure Windows PowerShell remoting, store credentials, and use remote commands.   Hey, Scripting Guy! I keep hearing about Windows PowerShell remoting. But I do not really know what Windows PowerShell remoting is. For example, I can use the Get-WMIObject to work with remote computers. Is that remoting? If so, what...