Skip to content

Commit 464672a

Browse files
Merge pull request #1974 from ploegert/docs-editor/pending-devices-1764029877
Update pending-devices.md
2 parents 17eae13 + 1c8c625 commit 464672a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

support/entra/entra-id/dir-dmns-obj/pending-devices.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ To fix the problem, unregister the device by running `dsregcmd /leave` at an ele
5454
## Get a list of pending devices
5555

5656
1. The [Microsoft Graph PowerShell SDK](/powershell/microsoftgraph/installation?view=graph-powershell-1.0&preserve-view=true) must be installed to execute Microsoft Graph PowerShell commands.
57-
2. Use the `Connect-MgGraph` command to sign in to your Microsoft Entra tenant. For more information, see [Get started with the Microsoft Graph PowerShell SDK](/powershell/microsoftgraph/get-started?view=graph-powershell-1.0&preserve-view=true).
58-
3. Count all pending devices:
59-
60-
```powershell
61-
(Get-MgDevice -All -Filter "TrustType eq 'ServerAd'" | Where-Object{($_.ProfileType -ne "RegisteredDevice") -and (-not $_.AlternativeSecurityIds)}).count
62-
```
57+
1. Use the `Connect-MgGraph` command to sign in to your Microsoft Entra tenant. For more information, see [Get started with the Microsoft Graph PowerShell SDK](/powershell/microsoftgraph/get-started?view=graph-powershell-1.0&preserve-view=true).
58+
1. Count all pending devices:
6359

60+
```powershell
61+
(Get-MgDevice -All -Filter "TrustType eq 'ServerAd'" | Where-Object{((-not $_.AlternativeSecurityIds)}).count
62+
```
63+
6464
You can also save the returned data in a CSV file:
65-
66-
```powershell
67-
Get-MgDevice -All -Filter "TrustType eq 'ServerAd'" | Where-Object{($_.ProfileType -ne "RegisteredDevice") -and (-not $_.AlternativeSecurityIds)} | select-object -Property AccountEnabled, Id, DeviceId, DisplayName, OperatingSystem, OperatingSystemVersion, TrustType | export-csv pendingdevicelist-summary.csv -NoTypeInformation
68-
```
69-
65+
66+
```powershell
67+
Get-MgDevice -All -Filter "TrustType eq 'ServerAd'" | Where-Object{(-not $_.AlternativeSecurityIds)} | select-object -Property AccountEnabled, Id, DeviceId, DisplayName, OperatingSystem, OperatingSystemVersion, TrustType | export-csv pendingdevicelist-summary.csv -NoTypeInformation
68+
```
69+
7070
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]

0 commit comments

Comments
 (0)