PowerShell version of uptime command

I created a PowerShell advanced function that emulates the uptime command for Unix-like operating systems. The uptime command displays the current time, the length of time the system has been up, the number of users, and the load average of the system over the last 1, 5, and 15 minutes. uptime output: 21:33 up 7 days, 11:10, 2 users, load averages: 0.05 0.08 0.08 My function returns a custom PowerShell object, so we have the option to pass it to the pipeline for further processing and/or formatting....

May 10, 2010 · 3 min

First Post!!!

I thought I would submit my solution for the FizzBuzz test. I’ve used PowerShell and VBScript for the solution since the majority of my dev work is Windows scripting. FizzBuzz for PowerShell: for ($i = 1; $i -le 100; $i++) { if (($i % 3 -eq 0) -and ($i % 5 -eq 0)) { Write-Host "FizzBuzz" } elseif ($i % 3 -eq 0) { Write-Host "Fizz" } elseif ($i % 5 -eq 0) { Write-Host "Buzz" } else { $i } } … and VBScript...

October 25, 2009 · 1 min