More Useful PowerShell Commands
Some more PowerShell commands I’ve found useful… Enjoy!
Get process start time
Get-Process -Id [PID] | FL StartTime
Emulate “Press Any Key”
Write-Host "Press any key to continue ..." $x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
Download the Latest IIS Log from a bunch of servers
foreach ($server in $serverlist) { get-childitem -path \$serverc$iislogssite1 | where-object { -not $_.PSIsContainer } | sort-object -Property $_.CreationTime | select-object -last 1 | copy-item -Destination (join-path $path "$server-latest.log") }
Useful PowerShell Commands
Here’s a couple of quick, handy PowerShell commands that I’ve found come in handy again and again.
Lesser known Web Deploy Commands
At my new job, I’ve been using Web Deploy quite often for deploying site packages to multiple servers. Sometimes, we’d just like to update one site in IIS, or all except one. In these cases, the following commands have been invaluable.
Favorite Good Will Hunting Quote
Got Good Will Hunting on Blu-Ray for Christmas. Was great re-watching it again. Also, it convinced me to finally re-buy Rounders on Blu-Ray, which I hadn’t owned since I moved to Canada from Australia 10 years ago.
Kristen Stewart to star in romantic remake of ‘1984’ | The Verge
Please don’t let this suck!
Kristen Stewart to star in romantic remake of ‘1984’ | The Verge.
Random Helpful Linux Commands
For the past few months, I’ve been working with Linux a lot more than I used to. With that increased exposure has come some helpful commands that I’ve come across, so I thought I’d share a few of them here. I’m sure many of them are fairly common knowledge, but I’ll share them nonetheless…