News

‘Select-Object’ accepts hash tables formatted with two specific key-value pairs. Well, more specifically, it needs two keys to be present. One key is ‘Name,’ and the value of ‘Name’ is ...
PowerShell wrapper for diff-table.exe a tool to diff csv files: Link: Diff-Excel: Binary wrapper\Diff-Excel.ps1: PowerShell wrapper for ExcelConmpare a tool to diff excel files: ... Function to ...
These are great tools that make it even easier to create custom objects from the PowerShell console. In a script, you might still want to use New-Object simply because it is clearer than ...
In this piece I’ll focus on using PowerShell objects, ... Note we have two tables of information returned: One for type System.IO.DirectoryInfo, and the other for System.IO.FileInfo.
By default, PowerShell displays the output of a command in a table format, which makes it easy to read and understand. Get-Process | Select-Object Name, CPU, WorkingSet | Format-Table -AutoSize. In ...
Some PowerShell scipts that can be hopefully also useful to others. Most of them were written by me, if not I tried to reference the author and or source. Since I collected those scripts over several ...
I use Powershell's "custom-object" command to create custom objects with properties I want to save. But custom-object applies only to one variable. Is it possible to create a custom class, like in ...
You must put [ordered] right before the hash table, but notice the result. Now the property names are in the same order. And that's not all. PowerShell 3 also has another type adapter called ...