Poshword Generator is a simple password generator for PowerShell.
This PowerShell Module creates passwords. Without any parameter it generates 8-figure passwords with 2 special characters. It is possible to change the parameters though.
New-Poshword -Length 12 -SpecialCharacters 4With the switch -ToClipboard the generated password gets sent to the clipboard in addition to the console output.
There are aliases to to shorten the command:
npw 12 4 -clipMore examples can be found in the in the PowerShell help with Get-Help New-Poshword.
The module is available on the PowerShell Gallery:
Install-Module -Name PoshwordGeneratorDownload this repository and place the folder PoshwordGenerator from the Output directory into on of the folders configured on your machine.
You can find the paths configured in the environment variable $PSModulePath:
Windows: $env:PSModulePath -split ';'
Linux / macOS: $env:PSModulePath -split ':'