A PowerShell loop

Please help! I put together this script from various sources on the interwebs to generate a guid but now I want to loop this so it will generate and output 10 results

$Guid = [guid]::NewGuid()
$Password = [string]$Guid
$Password = $Password.Replace("-", "")
Clear-Host
$Password
Clear-Variable -Name "Guid"
Clear-Variable -Name "Password"

Thanks in advance

Mark



Read more here: https://stackoverflow.com/questions/68475033/a-powershell-loop

Content Attribution

This content was originally published by Mark at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: