Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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.

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

```powershell

Import-Module Microsoft.Graph.Beta.CloudCommunications

$params = @{
sessionId = "22553876-f5ab-4529-bffb-cfe50aa89f87"
}

Clear-MgBetaUserPresence -UserId $userId -BodyParameter $params

```
This example shows how to use the Clear-MgBetaUserPresence 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.CloudCommunications

Clear-MgBetaUserPresenceUserPreferredPresence -UserId $userId

```
This example shows how to use the Clear-MgBetaUserPresenceUserPreferredPresence Cmdlet.

15 changes: 15 additions & 0 deletions src/CloudCommunications/v1.0/examples/Clear-MgUserPresence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.CloudCommunications

$params = @{
sessionId = "22553876-f5ab-4529-bffb-cfe50aa89f87"
}

Clear-MgUserPresence -UserId $userId -BodyParameter $params

```
This example shows how to use the Clear-MgUserPresence Cmdlet.

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

```powershell

Import-Module Microsoft.Graph.CloudCommunications

Clear-MgUserPresenceUserPreferredPresence -UserId $userId

```
This example shows how to use the Clear-MgUserPresenceUserPreferredPresence 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.Compliance

Get-MgBetaPrivacySubjectRightsRequestFinalAttachment -SubjectRightsRequestId $subjectRightsRequestId

```
This example shows how to use the Get-MgBetaPrivacySubjectRightsRequestFinalAttachment 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.Compliance

Get-MgBetaPrivacySubjectRightsRequestFinalReport -SubjectRightsRequestId $subjectRightsRequestId

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

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

```powershell

Import-Module Microsoft.Graph.DeviceManagement.Administration

Disconnect-MgDeviceManagementRemoteAssistancePartner -RemoteAssistancePartnerId $remoteAssistancePartnerId

```
This example shows how to use the Disconnect-MgDeviceManagementRemoteAssistancePartner Cmdlet.

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

```powershell

Import-Module Microsoft.Graph.DeviceManagement

$params = @{
keepEnrollmentData = $true
keepUserData = $true
macOsUnlockCode = "Mac Os Unlock Code value"
persistEsimDataPlan = $true
}

Clear-MgDeviceManagementManagedDevice -ManagedDeviceId $managedDeviceId -BodyParameter $params

```
This example shows how to use the Clear-MgDeviceManagementManagedDevice Cmdlet.

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

```powershell

Import-Module Microsoft.Graph.DeviceManagement

Disable-MgDeviceManagementManagedDeviceLostMode -ManagedDeviceId $managedDeviceId

```
This example shows how to use the Disable-MgDeviceManagementManagedDeviceLostMode Cmdlet.

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

```powershell

Import-Module Microsoft.Graph.DeviceManagement

Find-MgDeviceManagementManagedDevice -ManagedDeviceId $managedDeviceId

```
This example shows how to use the Find-MgDeviceManagementManagedDevice 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 @@

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

```powershell

Import-Module Microsoft.Graph.Beta.Education

Get-MgBetaEducationReportReadingAssignmentSubmission -Filter "submitDateTime gt 2023-10-10T00:00:00.000Z"

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### Example 1: Get the Reflect check-in responses from the last 24 hours

```powershell

Import-Module Microsoft.Graph.Beta.Education

Get-MgBetaEducationReportReflectCheck

```
This example will get the reflect check-in responses from the last 24 hours

### Example 2: Get the Reflect check-in responses for a specific date using $filter

```powershell

Import-Module Microsoft.Graph.Beta.Education

Get-MgBetaEducationReportReflectCheck -Filter "submitDateTime gt 2023-10-10T00:00:00.000Z"

```
This example will get the reflect check-in responses for a specific date using $filter

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 @@

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

1 change: 1 addition & 0 deletions src/Files/beta/examples/Copy-MgBetaGroupDriveItem.md
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 @@

1 change: 1 addition & 0 deletions src/Files/beta/examples/Copy-MgBetaGroupDriveRoot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions src/Files/beta/examples/Copy-MgBetaUserDriveItem.md
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 @@

1 change: 1 addition & 0 deletions src/Files/beta/examples/Copy-MgBetaUserDriveRoot.md
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 @@

1 change: 1 addition & 0 deletions src/Files/beta/examples/Get-MgBetaGroupDriveItemDelta.md
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 @@

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

1 change: 1 addition & 0 deletions src/Files/beta/examples/Get-MgBetaGroupDriveRootDelta.md
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 @@

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 @@

1 change: 1 addition & 0 deletions src/Files/v1.0/examples/Copy-MgGroupDriveItem.md
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 @@

1 change: 1 addition & 0 deletions src/Files/v1.0/examples/Copy-MgGroupDriveRoot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions src/Files/v1.0/examples/Copy-MgUserDriveItem.md
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 @@

1 change: 1 addition & 0 deletions src/Files/v1.0/examples/Copy-MgUserDriveRoot.md
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,33 @@
### Example 1: List all tokens in the inventory

```powershell

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

Get-MgBetaDirectoryAuthenticationMethodDeviceHardwareOathDevice

```
This example will list all tokens in the inventory

### Example 2: List all tokens in the inventory, filtered on status

```powershell

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

Get-MgBetaDirectoryAuthenticationMethodDeviceHardwareOathDevice -Filter "status eq 'activated'"

```
This example will list all tokens in the inventory, filtered on status

### Example 3: Find a specific token by serial number

```powershell

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

Get-MgBetaDirectoryAuthenticationMethodDeviceHardwareOathDevice -Filter "serialNumber eq 'TOTP123456'"

```
This example will find a specific token by serial number

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-MgBetaDirectoryCertificateAuthorityMutualTlOauthConfiguration

```
This example shows how to use the Get-MgBetaDirectoryCertificateAuthorityMutualTlOauthConfiguration 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.Identity.DirectoryManagement

Get-MgBetaDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration

```
This example shows how to use the Get-MgBetaDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration 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.Identity.DirectoryManagement

Get-MgBetaDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority -CertificateBasedAuthPkiId $certificateBasedAuthPkiId

```
This example shows how to use the Get-MgBetaDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority 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.Identity.DirectoryManagement

Get-MgBetaDirectoryTemplateDeviceTemplate

```
This example shows how to use the Get-MgBetaDirectoryTemplateDeviceTemplate 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.Identity.DirectoryManagement

Get-MgBetaDirectoryTemplateDeviceTemplateOwner -DeviceTemplateId $deviceTemplateId

```
This example shows how to use the Get-MgBetaDirectoryTemplateDeviceTemplateOwner 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.Identity.SignIns

Get-MgBetaIdentityProductChange

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

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

```powershell

Import-Module Microsoft.Graph.Identity.SignIns

# A UPN can also be used as -UserId.
Disable-MgUserAuthenticationPhoneMethodSmsSignIn -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId

```
This example shows how to use the Disable-MgUserAuthenticationPhoneMethodSmsSignIn Cmdlet.

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

```powershell

Import-Module Microsoft.Graph.Identity.SignIns

# A UPN can also be used as -UserId.
Enable-MgUserAuthenticationPhoneMethodSmsSignIn -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId

```
This example shows how to use the Enable-MgUserAuthenticationPhoneMethodSmsSignIn Cmdlet.

16 changes: 16 additions & 0 deletions src/Mail/beta/examples/Copy-MgBetaUserMailFolder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Mail

$params = @{
destinationId = "destinationId-value"
}

# A UPN can also be used as -UserId.
Copy-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params

```
This example shows how to use the Copy-MgBetaUserMailFolder 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 @@

Loading
Loading