Earlier this year I wrote a PowerShell module to get uptime information. The module was part of a series I wrote for Petri.com. As part of my ongoing project to move some of my more interesting, and hopefully useful, tools to GitHub, I revised the module. The new version makes better use of custom format…
Tag: PowerShell
PowerShell Pivot Tables Revisited
A few years ago I wrote a PowerShell function to create an Excel-like pivot table in a PowerShell console. The other day I decided to revisit the function. I was surprised that it didn’t really need too much updating but I did spend some time updating the documentation and adding one new feature. The function…
What’s the Weather?
I have used a PowerShell module I wrote a while ago to retrieve weather information from Yahoo.com. Yahoo offers a set of web APIs which are free to use, that will provide weather information for a given location. The location is determined by a “Where On Earth ID”, or woeid. Fortunately, there are APIs to…
PowerShell Summit Europe 2015 Presentations
Last week I gave two presentations at the European edition of the PowerShell Summit held in beautiful Stockholm, Sweden. If you weren’t able to attend, you can still enjoy the sessions because everything was recorded. Session recordings for the entire conference can be found on PowerShell.org’s YouTube channel. I thought I would post something here…
For He’s A Jolly Good Fellow
By now I’m assuming most of you have seen or heard the news that Jeffrey Snover has been promoted for the last time and is now a Technical Fellow at Microsoft. I want to add my congratulations and adulation to the thundering masses of PowerShell professionals. I always thought his previous position as a Distinguished…
What Were You Working On?
It probably comes as no surprise that I write a lot of PowerShell code. Like you, I’m usually working on several projects at the same time, most often using the PowerShell ISE. When I fire up the PowerShell ISE I often go to most recently edited files and re-open the files I was last working…
Updated PowerShell Formatting Functions
Last year I posted an article and a set of PowerShell functions to make it easier to format values. For some reason, I decided to revisit the functions and ended up revising and extending them. I modified Format-Value so that you can format a number as a currency or a number. Format-Value help (Image Credit:…
Veeam Whiteboard and PowerShell
I’ll be live next week talking about PowerShell principles and concepts as part of the Veeam Whiteboard series. Should be a lot of fun. I hope you’ll catch it live or on demand. You can learn more and register for free at http://www.veeam.com/veeamlive/powershell-paradigm-principles-practice.html
Teeing Up to the Clipboard
Because I spend a great part of my day creating PowerShell related content, I often need to copy command output from a PowerShell session. The quick and dirty solution is to pipe my expression to the Clip.exe command line utility. get-service | where { $_.status -eq ‘running’} | clip This works in both the console…
An Improved Get-Verb Command
A recommended best practice for PowerShell scripting, especially when developing functions, is to follow the standard Verb-Noun naming convention. The Verb should be a value from the list of approved .NET verbs. The easy way to see that list is with the Get-Verb cmdlet. The result will also indicate the verb group or category like…
Updating Month of Lunches
Don Jones and I are often asked about our Month of Lunches books and when we are going to update them. This question seems to pop up more frequently now that Windows 10 is released to the wild and more of you are seeing PowerShell 5.0 for the first time. The short answer is no…
Friday Fun: Tickle Me PowerShell!
I work at home for myself which means I have to act as my own assistant, reminding me of important events and tasks. And sometimes I need a little help. So why not use PowerShell? In the past I’ve used and written about using a background job to wait until a certain number of minutes…
Measuring Folders with PowerShell One More Time
I know I just posted an update to my Measure-Folder function but I couldn’t help myself and now I have an update to the update. Part of the update came as the result of a comment asking about formatting results to a certain number of decimal places. I typically the Round() method from the Math…
Creating a Hyper-V VM Memory Report
I use Hyper-V to run my lab environment. Since I work at home I don’t have access to a “real” production network so I have to make do with a virtualized environment. Given budgetary constraints I also don’t have a lot of high end hardware with endless amount of RAM and storage. So I often…
Measure that Folder with PowerShell Revisited
Last year I posted a PowerShell function to measure the size of a folder. I recently had a need to use it again, and realized it needed a few tweaks. By default, the original version recursively searched through all subfolders. But there may be situations where you only want to measure the top level folder,…