Skip to content

Instantly share code, notes, and snippets.

@Azio0
Created February 21, 2025 12:55
Show Gist options
  • Save Azio0/fd5d98969acccc66a1e6221ee4a5cad9 to your computer and use it in GitHub Desktop.
Save Azio0/fd5d98969acccc66a1e6221ee4a5cad9 to your computer and use it in GitHub Desktop.
Connect-Entra -Scopes 'Directory.AccessAsUser.All', 'Device.ReadWrite.All'
>> $device = Get-EntraDevice -Filter "DisplayName eq 'DEVICE_NAME'"
>> Remove-EntraDevice -DeviceId $device.Id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment