Get-LapsPassword
SYNOPSIS
Retrieve the LAPS password for a specified device.
SYNTAX
DESCRIPTION
This function connects to Microsoft Intune using the Microsoft Graph API, retrieves the specified device's information, and decodes the Local Administrator Password Solution (LAPS) password for the device.
EXAMPLES
EXAMPLE 1
Retrieves the LAPS password for the device named "Device01" from Microsoft Intune.
EXAMPLE 2
Retrieves the LAPS password for the device named "Workstation123" from Microsoft Intune.
PARAMETERS
-deviceName
The name of the device for which the LAPS password will be retrieved.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.