Because PowerShell is all about the objects, I often point out to beginners to use the Select-Object cmdlet to see all the properties of an object and their values.
PS C:\> get-process powershell | select *
Using Get-Member is helpful…
Read More
I’m very happy to see more and more people getting their hands dirty with Windows PowerShell. A common challenge I see across different support forums is getting information from one part of a script to another. Very often the user…
Read More
I was helping a member out in the PowerShell forum at ScriptingAnswers.com. He was trying to create a multistring registry entry on a remote computer using the .NET registry classes. Creating registry values is really not that complicated. Here’s a…
Read More
I’ve been dealing with the topic of enumerating local group membership in several PowerShell forums from different people. My responses have pretty much been the same. But if these people are asking its a safe bet there are others who…
Read More
Writing scripts to automate administrative tasks can be challenging. Not only do you need to master the particular scripting language you intend to use, you also need to find the right object and technology for the task at hand.
PrimalScript…
Read More
I needed a demonstration for one of my last online PowerShell classes on using COM objects in PowerShell. I took an old VBScript that used Microsoft Word to get document statistics such as word and page count and transformed it…
Read More
If you’ve been trying out the Get-Packet script you’ve seen that there is a great deal of information. I wanted an easy way to analyze the data so I put together a script called Analyze-Packet that will slice and dice…
Read More
This is a REALLY common question, and if you have any experience with VBScript, or Perl, or some similar scripting language, you’ll go down completely the wrong path. The thing to remember is that PowerShell already knows how to format…
Read More