Skip to content

Instantly share code, notes, and snippets.

@stuartsmith78
stuartsmith78 / Parameters-Example.ps1
Created August 15, 2023 17:25
Fooling around with parameters for function calls
[CmdletBinding()]
param(
[Alias("FileName")]
[string]$paramFileName,
[Alias("Identity")]
[string]$paramIdentity,
[Alias("GlipGlop")]
[switch]$paramGlipGlop=$false,
@stuartsmith78
stuartsmith78 / domain-join.ps1
Created July 13, 2023 15:51
Custom Domain Join for MDT
<#
.SOLUTION
.FILENAME domain-join.ps1
Joins a computer to the targeted domain, using a retrieved credential, deleting the old account
.DESCRIPTION
.PARAMETER -Join