Skip to content

Instantly share code, notes, and snippets.

View BrandonStiff's full-sized avatar

Brandon Stiff BrandonStiff

View GitHub Profile
@BrandonStiff
BrandonStiff / Copy-VCenterAnnotations.ps1
Last active June 4, 2018 17:08
Copy VM Annotations from one vCenter server to another
function Copy-VCenterAnnotations()
{
<#
.SYNOPSIS
This function copes all custom attributes and annotations from the VMs on one VCenter server to another.
.PARAMETER SourceVCenter
Specifies the source vCenter server.
.PARAMETER DestinationVCenter
@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