Skip to content

Instantly share code, notes, and snippets.

View BrandonStiff's full-sized avatar

Brandon Stiff BrandonStiff

View GitHub Profile
@BrandonStiff
BrandonStiff / Copy-VmVAppProperty.ps1
Created June 4, 2018 18:07
Copy all VM vApp properties from one vCenter server to another.
function Copy-VmVAppProperty()
{
<#
.SYNOPSIS
This function copes all VM vApp properties from the VMs in one VCenter server to another.
.PARAMETER SourceVCenter
Specifies the source vCenter server.
.PARAMETER DestinationVCenter
@BrandonStiff
BrandonStiff / Get-Weather.ps1
Created November 12, 2019 21:07
Get the Weather using OpenWeatherMap API
function Get-Weather
{
<#
.SYNOPSIS
This function makes an API call to openweathermap.org and retrieves the weather for my city.
.PARAMETER Zip
Specifies the zip code to get the weather for.
.PARAMETER Unit
@BrandonStiff
BrandonStiff / New-CaCertificate.ps1
Last active August 22, 2022 23:56
OpenSsl Certificate PowerShell functions
function Invoke-OpenSsl
{
<#
.SYNOPSIS
Invokes a call to the openssl.exe program
.PARAMETER OpenSslPath
Specifies the path to the Openssl.exe executable. Default is C:\program files\Git\usr\bin\openssl.exe
.PARAMETER Parameters