Thursday, 14 May 2026

Custom Password Generator

 The below script would help you to generate passwords randomly, instead of using public sites, you can generate the password by yourself. 


$Password = New-Object -TypeName PSObject

$Password | Add-Member -MemberType ScriptProperty -Name "Password" -Value { ("123456789!@#$%&0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".tochararray() | sort {Get-Random})[0..15] -join '' }

$Password #| Out-GridView

No comments:

Post a Comment