Example 1: Code snippet Import-Module Microsoft.Graph.Beta.Files Get-MgBetaDriveItemRetentionLabel -DriveId $driveId -DriveItemId $driveItemId This example shows how to use the Get-MgBetaDriveItemRetentionLabel Cmdlet.