Skip to content

Instantly share code, notes, and snippets.

View michaeltlombardi's full-sized avatar

Mikey Lombardi (He/Him) michaeltlombardi

View GitHub Profile
@michaeltlombardi
michaeltlombardi / Set-DefaultPropertyDisplaySet.ps1
Last active November 22, 2022 12:34
Function for Adding a Default Property Display Set to PSCustomObjects.
Function Set-DefaultPropertyDisplaySet {
<#
.Synopsis
Adds a Default Property Display Set to a PSCustomObject.
.Description
Adds a Default Property Display Set to a PSCustomObject. The default display will be formatted as a table; the columns will be in the
same order as they are passed to the function.
@michaeltlombardi
michaeltlombardi / New-Identity.ps1
Last active October 6, 2015 00:57
Example of a New-<Whatever> Powershell function with default views.
Function New-Identity {
<#
.Synopsis
Creates a new identity.
.Description
Creates a new identity with UID, Email, and UPN.
.Parameter UID
@michaeltlombardi
michaeltlombardi / Update-VMWareTools.ps1
Last active October 3, 2015 15:22
Update VMWare Tools from Unpacked ISO in Repository
Function Update-VMWareTools {
<#
.Synopsis
Update VMWare Tools from an unpacked ISO file on a shared repository.
.Description
Update VMWare Tools from an unpacked ISO file on a shared repository. As of
VMWare Tools Version 10, the VMWare releases the tools separately from the
ESXi patches and does so as individual ISO files. In order to use this function,
copy the ISO to a shared repository in your environment, and extract it into a