Profile cover photo
Profile photo
Tim Curwick
32 followers -
I'm not lazy; I'm optimizing my resources.
I'm not lazy; I'm optimizing my resources.

32 followers
About
Posts

Post has attachment
Comparing PowerShell objects for equality using a custom class
I wanted a simple way to do better-behaved object comparisons in PowerShell. So I built one. -eq and -ne operators Comparing PowerShell objects is something we do from the very first day we start working with PowerShell. If  (  $ObjectA   -eq   $ObjectB  ) ...
Add a comment...

Post has attachment
FileInfo and DirectoryInfo objects are not populated upon creation in PowerShell
When we use Get-Item or Get-ChildItem to get files and folders in PowerShell, most of the properties of the resulting FileInfo and DirectoryInfo objects are not actually populated until one of them is used for the first time. To capture point in time inform...
Add a comment...

Post has attachment
It’s always 5 o’clock somewhere: Using .Net and PowerShell’s Extended Type System to find out where
Last Friday, as work-related conversation was slowing down on the PowerShell Slack, someone wondered aloud if it was too early to start drinking. (I assume they were talking about tea.) Someone else answered with the cliché, “It’s always 5 o’clock somewhere...
Add a comment...

Post has attachment
Remove comments and whitespace from PowerShell
A PowerShell.Slack.com user asked if it was possible to easily remove the comments and whitespace from a scriptblock to reduce the size. I was intrigued by the challenge, and came up with this function. I also immediately put it to use. I manage a PowerShel...
Add a comment...

Post has attachment
Missing solutions in Azure OMS
I wanted to install the Service Map solution in my Azure OMS development workspace. But I couldn’t find it. Anywhere. It wasn’t in the Solutions Gallery. But I couldn’t think how else you would get it. The documentation wasn’t helpful. The documentation ass...
Add a comment...

Post has attachment
Missing solutions in Azure OMS
I wanted to install the Service Map solution in my Azure OMS development workspace. But I couldn’t find it. Anywhere. It wasn’t in the Solutions Gallery. But I couldn’t think how else you would get it. The documentation wasn’t helpful. The documentation ass...
Add a comment...

Post has attachment
Self-referencing formula in PowerShell
A formula in PowerShell can have a reference to another part of the same formula. I saw a script that calculated a start time at the next quarter hour from the current time. The code used was cumbersome, so I naturally felt challenged to do better. My first...
Add a comment...

Post has attachment
Azure Cloud Shell Preview
Azure Cloud Shell Preview was rolled out today. A coworker, Joe Behrens, noticed the new button in the toolbar in the upper right of the Azure portal. Cool! we thought. Another place to do PowerShell. Or…wait. What? Microsoft’s new browser based shell for m...
Add a comment...

Post has attachment
Open RDP access to Azure virtual machines from your specific location with PowerShell
A PowerShell utility script to get your current external internet IP address and modify the Azure network security groups for your Azure VM’s to allow you to make RDP connections. I recently got to see an Azure OMS demo by Ryan Zoeller from the Microsoft Cl...
Add a comment...

Post has attachment
December meeting - Jenkins as PowerShell automation platform
Come join us on our journey of creating a Windows pipeline and exploring open source tools for managing endpoints with PowerShell. Joe Artz and Mark Swoverland will explore the use of Jenkins as an open source tool to deliver PowerShell code to affect an en...
Add a comment...
Wait while more posts are being loaded