GetXrfKey.ps1
function GetXrfKey { <# .SYNOPSIS This function ... .DESCRIPTION A bit more description .PARAMETER FromPipeline Shows how to process input from the pipeline, remaining parameters or by named parameter. .EXAMPLE GetXrfKey 'abc' Description of the example. #> <# Enable -Confirm and -WhatIf. #> [CmdletBinding(SupportsShouldProcess = $true)] param( ) begin { } process { $alphabet = $Null; For ($a=97;$a -le 122;$a++) { $alphabet += ,[char][byte]$a } For ($loop=1; $loop -le 16; $loop++) { $key += ($alphabet | Get-Random) } return $key } end { } } |