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,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

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

```powershellImport-Module Microsoft.Graph.Applications
```powershell
Import-Module Microsoft.Graph.Applications

$params = @{
"@odata.id" = "https://graph.microsoft.com/v1.0/policies/homeRealmDiscoveryPolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9"
}

New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params
```
This example shows how to use the New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params
```
This example shows how to use the New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet.

To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

17 changes: 0 additions & 17 deletions src/Calendar/beta/examples/Get-MgBetaUserEventExtension.md
Original file line number Diff line number Diff line change
@@ -1,17 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
17 changes: 0 additions & 17 deletions src/Calendar/v1.0/examples/Get-MgGroupEventInstanceExtension.md
Original file line number Diff line number Diff line change
@@ -1,17 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Example 1: Get the presence information of another user
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Beta.CloudCommunications
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Example 1: Get your own presence information
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Beta.CloudCommunications
Expand All @@ -10,14 +10,3 @@ This example shows how to use the Get-MgBetaUserPresence Cmdlet.

To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

### Example 2: Get the presence information of another user

```powershell
Import-Module Microsoft.Graph.Beta.CloudCommunications

Get-MgBetaUserPresence -UserId $userId
```
This example shows how to use the Get-MgBetaUserPresence Cmdlet.

To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Original file line number Diff line number Diff line change
@@ -1,17 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
16 changes: 9 additions & 7 deletions src/CrossDeviceExperiences/v1.0/examples/Get-MgUserActivity.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
### Example 1: Code snippet
### Example 1: Code snippet

```powershellImport-Module Microsoft.Graph.CrossDeviceExperiences
```powershell
Import-Module Microsoft.Graph.CrossDeviceExperiences

# A UPN can also be used as -UserId.
Get-MgUserActivity -UserId $userId
```
This example shows how to use the Get-MgUserActivity Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Get-MgUserActivity -UserId $userId
```
This example shows how to use the Get-MgUserActivity Cmdlet.

To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

16 changes: 7 additions & 9 deletions src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintPrinter.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
### Example 1: Code snippet
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Devices.CloudPrint

Remove-MgPrintPrinter -PrinterId $printerId
```
This example shows how to use the Remove-MgPrintPrinter Cmdlet.

To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
```powershellImport-Module Microsoft.Graph.Devices.CloudPrint

Remove-MgPrintPrinter -PrinterId $printerId
```
This example shows how to use the Remove-MgPrintPrinter Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Expand Down
16 changes: 9 additions & 7 deletions src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShare.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
### Example 1: Code snippet
### Example 1: Code snippet

```powershellImport-Module Microsoft.Graph.Devices.CloudPrint
```powershell
Import-Module Microsoft.Graph.Devices.CloudPrint

Remove-MgPrintShare -PrinterShareId $printerShareId
```
This example shows how to use the Remove-MgPrintShare Cmdlet.

To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Remove-MgPrintShare -PrinterShareId $printerShareId
```
This example shows how to use the Remove-MgPrintShare Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Example 1: Code snippet
### Example 1: Request without optional Prefer header

```powershellImport-Module Microsoft.Graph.Beta.Education

Expand All @@ -7,7 +7,16 @@ Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId
This example shows how to use the Get-MgBetaEducationClassAssignmentSubmission Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

### Example 2: Code snippet
### Example 2: Request with optional Prefer header

```powershellImport-Module Microsoft.Graph.Beta.Education

Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId
```
This example shows how to use the Get-MgBetaEducationClassAssignmentSubmission Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

### Example 3: Get submission with $expand options

```powershellImport-Module Microsoft.Graph.Beta.Education

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

```powershell
Import-Module Microsoft.Graph.Beta.Education

Get-MgBetaEducationClassAssignmentSubmissionSubmittedResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId
```
This example shows how to use the Get-MgBetaEducationMeAssignmentSubmissionSubmittedResource Cmdlet.

To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

16 changes: 9 additions & 7 deletions src/Education/v1.0/examples/Get-MgEducationClassAssignment.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
### Example 1: Code snippet
### Example 1: Code snippet

```powershellImport-Module Microsoft.Graph.Education
```powershell
Import-Module Microsoft.Graph.Education

Get-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId
```
This example shows how to use the Get-MgEducationClassAssignment Cmdlet.

To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Get-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId
```
This example shows how to use the Get-MgEducationClassAssignment Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

16 changes: 9 additions & 7 deletions src/Education/v1.0/examples/Get-MgEducationMeUser.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
### Example 1: Code snippet
### Example 1: Code snippet

```powershellImport-Module Microsoft.Graph.Education
```powershell
Import-Module Microsoft.Graph.Education

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

To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Get-MgEducationMeUser
```
This example shows how to use the Get-MgEducationMeUser Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Original file line number Diff line number Diff line change
@@ -1,17 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
17 changes: 0 additions & 17 deletions src/Files/beta/examples/Get-MgBetaDriveItemChildContent.md
Original file line number Diff line number Diff line change
@@ -1,17 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
17 changes: 0 additions & 17 deletions src/Files/v1.0/examples/Get-MgDriveItemChildContent.md
Original file line number Diff line number Diff line change
@@ -1,17 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
Original file line number Diff line number Diff line change
@@ -1,17 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
21 changes: 7 additions & 14 deletions src/Groups/v1.0/examples/Get-MgGroupMemberOf.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
### Example 1: Code snippet
### Example 1: Code snippet

```powershellImport-Module Microsoft.Graph.Groups
```powershell
Import-Module Microsoft.Graph.Groups

Get-MgGroupMemberOf -GroupId $groupId
```
This example shows how to use the Get-MgGroupMemberOf Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

### Example 2: Code snippet
Get-MgGroupMemberOf -GroupId $groupId
```
This example shows how to use the Get-MgGroupMemberOf Cmdlet.

```powershellImport-Module Microsoft.Graph.Groups
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Get-MgGroupMemberOfAsGroup -GroupId $groupId -CountVariable CountVar -Sort "displayName" -Filter "startswith(displayName, 'A')" -ConsistencyLevel eventual
```
This example shows how to use the Get-MgGroupMemberOf Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Original file line number Diff line number Diff line change
@@ -1,17 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}
Loading