| external help file | DSInternals.PowerShell.dll-Help.xml |
|---|---|
| Module Name | DSInternals |
| online version | https://github.com/MichaelGrafnetter/DSInternals/blob/master/Documentation/PowerShell/ConvertTo-LMHash.md |
| schema | 2.0.0 |
Calculates LM hash of a given password.
ConvertTo-LMHash [-Password] <SecureString> [<CommonParameters>]
Applies the Lan Manager one-way function (LM OWF) to a given cleartext password and returns the resulting hash.
PS C:\> ConvertTo-LMHash
cmdlet ConvertTo-LMHash at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
Password: ********
727e3576618fa1754a3b108f3fa6cb6dReads a password from the command line and calculates its LM hash.
PS C:\> $pwd = ConvertTo-SecureString -String 'Pa$$w0rd' -AsPlainText -Force
PS C:\> ConvertTo-LMHash -Password $pwd
727e3576618fa1754a3b108f3fa6cb6dCalculates the LM hash of password Pa$$w0rd.
Specifies a password in the form of a SecureString.
Type: SecureString
Parameter Sets: (All)
Aliases: p
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.