Skip to content

Instantly share code, notes, and snippets.

# =============================================================================
# winrm-bootstrap.ps1
# =============================================================================
# Configures the Windows Server 2022 VM for Ansible WinRM access.
#
# This script is fetched by the Azure Custom Script Extension on first boot
# and runs as SYSTEM. By the time it finishes, the workshop's control node
# can connect to this VM via Ansible's winrm connection plugin.
#
# What it does:
@jhoughes
jhoughes / RemapVMs&Backup.ps1
Created November 23, 2020 21:08
RemapVeeamBackups
# Add Veeam Snap-in
Add-PSSnapin -Name VeeamPSSnapin -ErrorAction SilentlyContinue
function Remap-VMs ([Veeam.Backup.Core.CBackup]$backup, [string]$newVCenterFQDN) {
# get Veeam's hostId using new VC FQDN
$newHostId = (Get-VBRServer -Name $newVCenterFQDN).Id
# Get Objects in backup
$OIBs = $backup.GetObjects()
foreach ($OIB in $OIBs) {
@jhoughes
jhoughes / Set-VCSAShell.ps1
Created October 14, 2020 16:14
PowerShell function to set Bash or Appliance Shell for SSH access to VCSA
function Set-VCSAShell {
[CmdletBinding()]
param (
[Parameter( Mandatory = $true,
Position = 0)]
[string]$VCSAName,
[ValidateNotNull()]
[System.Management.Automation.PSCredential]
@jhoughes
jhoughes / EDAToolVersion.md
Last active November 22, 2019 17:10
EDAToolVersion

1.1.02