Skip to content

Instantly share code, notes, and snippets.

View jonathanmedd's full-sized avatar

Jonathan Medd jonathanmedd

View GitHub Profile
@jonathanmedd
jonathanmedd / Connect-vROServerSecureStringPassword.ps1
Created January 3, 2018 15:01
Connect-vROServer SecureString Password
$SecurePassword = ConvertTo-SecureString “P@ssword” -AsPlainText -Force
Connect-vROServer -Server vro01.domain.local -Username TenantAdmin01 -Password $SecurePassword -IgnoreCertRequirements
@jonathanmedd
jonathanmedd / macOS_versions.ps1
Created January 3, 2018 16:34
macOS versions
Jonathans-MacBook-Pro-2:~ jon_medd$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.2
BuildVersion: 17C88
Jonathans-MacBook-Pro-2:~ jon_medd$ pwsh
PowerShell v6.0.0-rc
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/pscore6-docs
Type 'help' to get help.
@jonathanmedd
jonathanmedd / macOS-Connect-vROServer.ps1
Last active January 3, 2018 16:39
macOS-Connect-vROServer
$cred = Get-Credential
Connect-vROServer -Server vro03.vrademo.local -Credential $cred -IgnoreCertRequirements
@jonathanmedd
jonathanmedd / macOS-Get-vROWorkflow.ps1
Created January 3, 2018 16:36
macOS-Get-vROWorkflow
Get-vROWorkflow | Sort-Object CategoryName | ft Name,CategoryName,Id -AutoSize
@jonathanmedd
jonathanmedd / macOS-Invoke-vROWorkflow.ps1
Created January 3, 2018 16:37
macOS-Invoke-vROWorkflow
Get-vROWorkflow -Name Test02 | Invoke-vROWorkflow -ParameterName 'a' -ParameterType 'String' -ParameterValue 'Hello World'
@jonathanmedd
jonathanmedd / macOS-New-vROCategory.ps1
Created January 3, 2018 16:42
macOS-New-vROCategory
New-vROCategory -Name Testing -CategoryType WorkflowCategory
@jonathanmedd
jonathanmedd / macOS-Remove-vROCategory.ps1
Created January 3, 2018 16:44
macOS-Remove-vROCategory
Remove-vROCategory -Id 40281e94607d82cc0160bbacb0b60084 -Confirm:$false
# PowerShell Core 6.0.2
$cred = Get-Credential
$data = Invoke-RestMethod http://jenkinsserver/pluginManager/api/xml?depth=1 -Credential $cred -AllowUnencryptedAuthentication -Authentication Basic
$data.localPluginManager.plugin
active : true
bundled : false
deleted : false
dependency :
downgradable : false
@jonathanmedd
jonathanmedd / muted_keywords.txt
Last active July 23, 2018 10:05
Muted Keywords
# Borrowed from here: https://gist.github.com/potatoqualitee/d873c10d8cc578c11fc2ea508bcb2501
# mute here: https://twitter.com/settings/muted_keywords
Stormy Daniels
Melania
Schumer
Pelosi
Kamala
MAGA
Ivanka
Democrat
@jonathanmedd
jonathanmedd / DownloadLegoInstructionsTheme.ps1
Last active January 15, 2021 15:10
Download Lego Instructions for a Theme
Get-BricksetSet -Theme 'Indiana Jones' | ForEach-Object {
$i = 1
$instructionsUrls = $_ | Get-BricksetSetInstructions | Select-Object -ExpandProperty url
foreach ($instructionsUrl in $instructionsUrls){
$file = "$($_.number)_$($i).pdf"
$i++
Start-BitsTransfer -Source $instructionsUrl -Destination "C:\temp\$file"