Skip to content

Instantly share code, notes, and snippets.

View GaryLBaird's full-sized avatar

Major Pain GaryLBaird

View GitHub Profile
# Show message box popup.
Add-Type -AssemblyName System.Windows.Forms
$result = [System.Windows.Forms.MessageBox]::Show("My message", "Window Title", [System.Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::None)
# Show input box popup.
Add-Type -AssemblyName Microsoft.VisualBasic
$inputText = [Microsoft.VisualBasic.Interaction]::InputBox("Enter some value:", "Window Title", "Default value")
# Show an Open File Dialog and return the file selected by the user.
function Read-OpenFileDialog([string]$InitialDirectory, [switch]$AllowMultiSelect)
@artisticcheese
artisticcheese / ClusterConfig.Windows.MultiMachine.json
Created July 12, 2018 14:43
ClusterConfig.Windows.MultiMachine.json
{
"name": "WindowsContainersCluster",
"clusterConfigurationVersion": "1.0.0",
"apiVersion": "10-2017",
"nodes": [
{
"nodeName": "vm0",
"iPAddress": "containerhost00.sf.local",
"nodeTypeRef": "NodeType0",
"faultDomain": "fd:/dc1/r0",