powershell
Powershell - Get CPU Usage by Process (remote)
· ☕ 1 min read
You would expect `Get-Process` to do the job, but it turns out that its CPU metric is not on a 0..100% scale. Here is a one-liner (find who's eating into your CPU - or that of a remote server).

Powershell - Export Logs from SVN
· ☕ 1 min read
You will need a command line SVN tool for this to work. Install it on your machine and configure environment:path to point to its binaries. Then use below Powershell script. It needs to be executed under a versioned folder, and it will output a log for that folder.

Edit XML using Powershell
· ☕ 1 min read
Because there is no easy/built-in way to edit XML using Powershell, I wrote a script that can change parts of XML documents. I used it for bulk edit of connections in Remote Desktop Manager, to change some values in RDP session over dozens of servers. You can modify it for your needs - in simple cases you would only need to change `ArrayOfConnection` to your document's root.

PowerShell - Convert Array To HashTable
· ☕ 1 min read
There are many ways to do this, depending on what you need. In this article I'm going to highlight 2 of them. (1) Function-style conversion (2) Filter-style conversion.

Powershell Special Characters And Tokens
· ☕ 10 min read
This article originally started when I was actively involved in PowerShell development. Now I am mostly updating it on request of my blog readers (people like you). After a few dozen updates over the course of many years, it is now regarded as one of the top resources in the Powershell community.