Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example

```powershell

Import-Module Microsoft.Graph.Beta.Applications

Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId

```
This example shows how to use the Get-MgBetaServicePrincipalSynchronizationTemplate Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.DeviceManagement

Get-MgBetaDeviceManagementManagedDeviceCloudPcRemoteActionResult -ManagedDeviceId $managedDeviceId

```
This example shows how to use the Get-MgBetaDeviceManagementManagedDeviceCloudPcRemoteActionResult Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.DeviceManagement

Get-MgBetaDeviceManagementManagedDeviceCloudPcReviewStatus -ManagedDeviceId $managedDeviceId

```
This example shows how to use the Get-MgBetaDeviceManagementManagedDeviceCloudPcReviewStatus Cmdlet.

Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
### Example 1: Check group memberships for a directory object

```powershell

Import-Module Microsoft.Graph.Beta.DirectoryObjects

$params = @{
groupIds = @(
"f448435d-3ca7-4073-8152-a1fd73c0fd09"
"bd7c6263-4dd5-4ae8-8c96-556e1c0bece6"
"93670da6-d731-4366-94b5-abed40b6016b"
"f5484ab1-4d4d-41ec-a9b8-754b3957bfc7"
"c9103f26-f3cf-4004-a611-2a14e81b8f79"
)
}

Confirm-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params

```
This example will check group memberships for a directory object

11 changes: 11 additions & 0 deletions src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.DirectoryObjects

Get-MgBetaDirectoryObject -DirectoryObjectId $directoryObjectId

```
This example shows how to use the Get-MgBetaDirectoryObject Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.DirectoryObjects

$params = @{
ids = @(
"84b80893-8749-40a3-97b7-68513b600544"
"5d6059b6-368d-45f8-91e1-8e07d485f1d0"
"0b944de3-e0fc-4774-a49a-b135213725ef"
"b75a5ab2-fe55-4463-bd31-d21ad555c6e0"
)
types = @(
"user"
"group"
"device"
)
}

Get-MgBetaDirectoryObjectById -BodyParameter $params

```
This example shows how to use the Get-MgBetaDirectoryObjectById Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
### Example 1: Retrieve changes for a collection of users and groups

```powershell

Import-Module Microsoft.Graph.Beta.DirectoryObjects

Get-MgBetaDirectoryObjectDelta -Filter "isof('microsoft.graph.user') or isof('microsoft.graph.group')"

```
This example will retrieve changes for a collection of users and groups

### Example 2: Retrieve a collection of changes for a directory object

```powershell

Import-Module Microsoft.Graph.Beta.DirectoryObjects

Get-MgBetaDirectoryObjectDelta -Filter "id eq '87d349ed-44d7-43e1-9a83-5f2406dee5bd'"

```
This example will retrieve a collection of changes for a directory object

### Example 3: Retrieve changes to specific properties for a collection of users and groups

```powershell

Import-Module Microsoft.Graph.Beta.DirectoryObjects

Get-MgBetaDirectoryObjectDelta -Filter "isof('microsoft.graph.user') or isof('microsoft.graph.group')" -Property "microsoft.graph.user/surname,microsoft.graph.group/displayName"

```
This example will retrieve changes to specific properties for a collection of users and groups

### Example 4: Retrieve specific properties only if they changed for a collection of users and groups

```powershell

Import-Module Microsoft.Graph.Beta.DirectoryObjects

Get-MgBetaDirectoryObjectDelta -Filter "isof('microsoft.graph.user') or isof('microsoft.graph.group')" -Property "microsoft.graph.user/surname,microsoft.graph.group/displayName"

```
This example will retrieve specific properties only if they changed for a collection of users and groups

Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
### Example 1: Check group memberships for a directory object

```powershell

Import-Module Microsoft.Graph.Beta.DirectoryObjects

$params = @{
securityEnabledOnly = $false
}

Get-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params

```
This example will check group memberships for a directory object

Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
### Example 1: Check group memberships for a directory object

```powershell

Import-Module Microsoft.Graph.DirectoryObjects

$params = @{
groupIds = @(
"f448435d-3ca7-4073-8152-a1fd73c0fd09"
"bd7c6263-4dd5-4ae8-8c96-556e1c0bece6"
"93670da6-d731-4366-94b5-abed40b6016b"
"f5484ab1-4d4d-41ec-a9b8-754b3957bfc7"
"c9103f26-f3cf-4004-a611-2a14e81b8f79"
)
}

Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params

```
This example will check group memberships for a directory object

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement

Get-MgBetaAdminPeopleNamePronunciation

```
This example shows how to use the Get-MgBetaAdminPeopleNamePronunciation Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Security

Get-MgBetaSecurityCaseEdiscoveryCaseMember -EdiscoveryCaseId $ediscoveryCaseId

```
This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseMember Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

11 changes: 11 additions & 0 deletions src/Teams/v1.0/examples/Confirm-MgTeamScheduleTimeCard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Teams

Confirm-MgTeamScheduleTimeCard -TeamId $teamId -TimeCardId $timeCardId

```
This example shows how to use the Confirm-MgTeamScheduleTimeCard Cmdlet.

Loading