This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$SecurePassword = ConvertTo-SecureString “P@ssword” -AsPlainText -Force | |
Connect-vROServer -Server vro01.domain.local -Username TenantAdmin01 -Password $SecurePassword -IgnoreCertRequirements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$cred = Get-Credential | |
Connect-vROServer -Server vro03.vrademo.local -Credential $cred -IgnoreCertRequirements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-vROWorkflow | Sort-Object CategoryName | ft Name,CategoryName,Id -AutoSize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-vROWorkflow -Name Test02 | Invoke-vROWorkflow -ParameterName 'a' -ParameterType 'String' -ParameterValue 'Hello World' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New-vROCategory -Name Testing -CategoryType WorkflowCategory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove-vROCategory -Id 40281e94607d82cc0160bbacb0b60084 -Confirm:$false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |