How to create dump files remotely (ProcDump) using PowerShell?

Recently I had to create memory dump files for multiple remote servers. I found great tool called ProcDump on Microsoft page which can do it. Unfortunately it can’t be run remotely so I had to combine this tool features with PowerShell commands. ProcDump ProcDump is a command-line utility whose primary purpose is monitoring an application for CPU spikes and generating crash dumps during a spike that an administrator or developer …

PowerShell Tip of the Week: Compare two CSV files

In this article I wanted to show you how to compare two CSV files using Compare-Object command. It might be useful if you run some scans on regular basis and want to check if they contains the same data. Compare-Object Script is based on Compare-Object cmdlet which compares two sets of objects. One set of objects is the “reference set,” and the other set is the “difference set.” The result …

PowerShell Tip of the Week: Combine multiple CSV files

Recently I had to combine multiple files and count unique users from them. Script is pretty simple but it might me useful in some troubleshooting sessions. Below you can find two examples about how can this be done. Combine CSV files I created folder called Files on my desktop and pasted there user lists in CSV format. Files contains multiple columns but I was focusing only on Samaccountname: File example …

PowerShell Tip of the Week: File browser

Today’s tip will be about file browser in PowerShell. Its a nice feature where you can just select the server list instead of writing path inside the code. File browser To select the file we’re gonna use System.Windows.Forms. The System.Windows.Forms namespace contains classes for creating Windows-based applications that take full advantage of the rich user interface features available in the Microsoft Windows operating system. For more information please visit technet …

Find files larger than given size using PowerShell

In this article I will show you how to find files on your PC. Function posted below will help you to scan selected path for files larger than specified size. I used windows forms to select path for scanning in browse window: To scan some path you can use just this simple Get-ChildItem command: Script will return the following parameters: – Name – Extension – Fullname – CreationTime – LastAccessTime …