Developers are likely to be familiar with ternary conditional operators as they’re legal in many languages (Ruby, Python, C++, etc). They’re also often used in coding interviews to test an applicant as they can be a familiar source of code errors. While some developers couldn’t …
One of the best enhancements to Powershell was the inclusion of custom classes in v5. We originally wrote scripts, then we wrote cmdlets, followed by modules, and now we’ve graduated, with Class.
I recently decided I wanted to write some code that would build a website. What better way to do …
Synopsis This is a quick post to highlight the nuances of Powershell and protocol management in regard to TLS connections. If you’ve ever attempted to make a secure connection (for example, an API request) to a service with certain net security requirements, you might have run into this …
Topics include working with the Graph API, Chocolatey, jazzing up your functions with pipeline support, and shrinking VMDKs.
Special thanks to Robin Dadswell, Prasoon Karunan V, and Mark Roloff.
How to shrink VMDK with a couple of PowerShell scripts? by Kevin Soltow on May 8th
Not just a set of …
I recently had a need to backup file and folder ACLs for a client that would then need to restore them to their original objects following a hardware upgrade that would wipe them out. Easy enough, but the catch was that there was 1.5 million of them. Fortunately, getting ACLs in PowerShell is easy. …
I’m going to file this under “Either I’m a genius, or there’s a much better way and everyone knows it except for me.”
I recently began adding a suite of Pester tests to one of my projects and I found myself needing to mock some unit tests against a particular function …
Running commands in PowerShell that require a format that will not run natively in PowerShell could be a difficult task, or can it? PowerShell provides a way to store, for example, a JSON as a string, enter here-string. A here-string is a single or double quoted string in which the quotation marks …
Index What is a Constrained Endpoint and Why Would I Need One?
Setup and Configuration
Using our Endpoint
What is a constrained endpoint and why would I need one? Powershell constrained endpoints are a means of interacting with powershell in a manner consistent with the principal of least privilege. …