Functions/New-Password.ps1
function New-Password { [CmdletBinding()] param ( ) $words = @( "Bonbon" "Chocolade" "Cupcake" "Dropveter" "Engelsedrop" "Fudge" "Kauwgom" "Kaneelstok" "Karamel" "Kauwgom" "Kruidnoot" "LangeJan" "Lolly" "Marsepein" "Napoleon" "Noga" "Paasei" "Pepermunt" "Pepernoot" "Praline" "Salmiak" "Schuimpje" "Skittles" "Suikerspin" "Toffee" "Toverbal" "Tumtum" "Winegum" "Zoethout" "Zuremat" "Zuurstok" "Zuurtje" "Zwartwit" "Aardbei" "Abrikoos" "Ananas" "Appel" "Avocado" "Banaan" "Braam" "Citroen" "Cranberry" "Dadel" "Druif" "Framboos" "Granaatappel" "Grapefruit" "Kers" "Kiwi" "Kokosnoot" "Limoen" "Mandarijn" "Mango" "Meloen" "Moerbei" "Nectarine" "Olijf" "Papaja" "Peer" "Perzik" "Pruim" "Sinaasappel" "Tomaat" "Vlierbes" "Watermeloen" # Gereedschap toevoegen ) $word = Get-Random $words $specialChar = Get-Random @("!", "@", "#", "$", "%", "&", "*", "(", ")", "-", "=") $number = Get-Random -Minimum 101 -Maximum 998 $password = "$($word)$($specialChar)$($number)" return $password } |