Skip to content

Instantly share code, notes, and snippets.

View SheepReaper's full-sized avatar

Bryan Gonzalez SheepReaper

View GitHub Profile
@SheepReaper
SheepReaper / SheepReaper.Meraki.PowerShellCli.psm1
Last active October 1, 2018 21:20
PowerShell implementation of Meraki Dashboard API (for a binary version of this, see here: https://github.com/bryan5989/SheepReaper.Meraki.DashboardApi.PowerShell)
# Globals
[string]$endpoint = "https://api.meraki.com/api/v0"
[Hashtable]$headers = @{
"X-Cisco-Meraki-API-Key" = $env:MerakiApiKey
"Content-Type" = 'application/json'
}
# Private functions
function persistApiKey {
if ($env:MerakiApiKey -eq [System.Environment]::GetEnvironmentVariable("MerakiApiKey", "User")) {
# minimum size of USB stick 5.29GB
# Set here the path of your ISO file
$iso = 'C:\Users\localuser\Downloads\en_windows_server_2016_x64_dvd_9327751.iso'
# Clean ! will clear any plugged-in USB stick!!
Get-Disk | Where BusType -eq 'USB' |
Clear-Disk -RemoveData -Confirm:$true -PassThru
# Convert GPT