Instantly share code, notes, and snippets.

View muted_keywords.txt
# 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
View List_Jenkins_Plugins.ps1
# 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
View macOS-Remove-vROCategory.ps1
Remove-vROCategory -Id 40281e94607d82cc0160bbacb0b60084 -Confirm:$false
View macOS-New-vROCategory.ps1
New-vROCategory -Name Testing -CategoryType WorkflowCategory
View macOS-Invoke-vROWorkflow.ps1
Get-vROWorkflow -Name Test02 | Invoke-vROWorkflow -ParameterName 'a' -ParameterType 'String' -ParameterValue 'Hello World'
View macOS-Get-vROWorkflow.ps1
Get-vROWorkflow | Sort-Object CategoryName | ft Name,CategoryName,Id -AutoSize
View macOS-Connect-vROServer.ps1
$cred = Get-Credential
Connect-vROServer -Server vro03.vrademo.local -Credential $cred -IgnoreCertRequirements
View macOS_versions.ps1
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.
View Connect-vROServerSecureStringPassword.ps1
$SecurePassword = ConvertTo-SecureString “P@ssword-AsPlainText -Force
Connect-vROServer -Server vro01.domain.local -Username TenantAdmin01 -Password $SecurePassword -IgnoreCertRequirements
View $env:PSMODULEPATH-RC.ps1
$env:PSMODULEPATH
/home/jmedd/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/6.0.0-rc/Modules