Skip to content

Instantly share code, notes, and snippets.

@tomohulk
tomohulk / Move-ClusteredVM.ps1
Last active June 17, 2024 22:14
Move Hyper-V Clustered VM to new Cluster with different Virtual Switch Names.
function Move-ClusteredVM {
[CmdletBinding(DefaultParameterSetName = "__AllParameterSets")]
[OutputType()]
param (
[Parameter(Mandatory = $true, ParameterSetName = "ByName", ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
[String[]]
$Name,
@tomohulk
tomohulk / ConvertFrom-AppLockerPolicyXml.ps1
Last active March 3, 2021 01:57
Converts a AppLocker Policy XML input to individual objects.
#requires -Version 5.1
<#PSScriptInfo
.Version
1.0
.Guid
90d2876dc-04e4-4f2d-b765-e288bc84456c
.Author
Thomas J. Malkewitz @tomohulk
.Tags
@tomohulk
tomohulk / New-HPEiLOPKICertificate.ps1
Last active August 20, 2024 14:47
Create and install a PKI Certificate on HPE iLO.
#requires -Modules HPEiLOCmdlets
[CmdletBinding(
[PSCustomObject]
)]
[OutputType()]
param (
[Parameter(
Mandatory = $true
@tomohulk
tomohulk / printer.cfg
Created June 20, 2019 00:55
printer.cfg for Ender3 and the Klipper firmware.
# 2018 Creality Ender 3
# AVR atmega1284p
# Flash Command(s)
# * avrdude -p atmega1284p -c arduino -b 57600 -P /dev/ttyUSB0 -U out/klipper.elf.hex
# * make flash
# ================================================================================
# Stepper Definitions
# ================================================================================
# ================================================================================
[stepper_x]