Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### 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
@@ -1 +0,0 @@

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

```powershell

Import-Module Microsoft.Graph.Beta.Bookings

Get-MgBetaVirtualEventTownhallSessionAttendanceReport -VirtualEventTownhallId $virtualEventTownhallId -VirtualEventSessionId $virtualEventSessionId

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

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Import-Module Microsoft.Graph.Beta.Bookings

$params = @{
externalRegistrationInformation = @{
referrer = "Facebook"
referrer = "Fabrikam"
registrationId = "myExternalRegistrationId"
}
preferredTimezone = "Pacific Standard Time"
Expand Down Expand Up @@ -56,7 +56,7 @@ $params = @{
lastName = "Demoss"
email = "[email protected]"
externalRegistrationInformation = @{
referrer = "Facebook"
referrer = "Fabrikam"
registrationId = "myExternalRegistrationId"
}
preferredTimezone = "Pacific Standard Time"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

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

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Get the attendance report for a town hall session by ID

```powershell

Import-Module Microsoft.Graph.Bookings

Get-MgVirtualEventTownhallSessionAttendanceReport -VirtualEventTownhallId $virtualEventTownhallId -VirtualEventSessionId $virtualEventSessionId -MeetingAttendanceReportId $meetingAttendanceReportId

```
This example will get the attendance report for a town hall session by id

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: List attendance records for the attendance report of a town hall session

```powershell

Import-Module Microsoft.Graph.Bookings

Get-MgVirtualEventTownhallSessionAttendanceReportAttendanceRecord -VirtualEventTownhallId $virtualEventTownhallId -VirtualEventSessionId $virtualEventSessionId -MeetingAttendanceReportId $meetingAttendanceReportId

```
This example will list attendance records for the attendance report of a town hall session

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

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

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 2: List attendance records of a webinar session's attendance report

```powershell

Import-Module Microsoft.Graph.Bookings

Get-MgVirtualEventWebinarSessionAttendanceReportAttendanceRecord -VirtualEventWebinarId $virtualEventWebinarId -VirtualEventSessionId $virtualEventSessionId -MeetingAttendanceReportId $meetingAttendanceReportId

```
This example will list attendance records of a webinar session's attendance report

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Import-Module Microsoft.Graph.Bookings

$params = @{
externalRegistrationInformation = @{
referrer = "Facebook"
referrer = "Fabrikam"
registrationId = "myExternalRegistrationId"
}
preferredTimezone = "Pacific Standard Time"
Expand Down Expand Up @@ -56,7 +56,7 @@ $params = @{
lastName = "Demoss"
email = "[email protected]"
externalRegistrationInformation = @{
referrer = "Facebook"
referrer = "Fabrikam"
registrationId = "myExternalRegistrationId"
}
preferredTimezone = "Pacific Standard Time"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

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

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

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

```powershell

Import-Module Microsoft.Graph.Beta.Calendar

# A UPN can also be used as -UserId.
Get-MgBetaUserCalendarDelta -UserId $userId

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

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

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

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

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

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

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

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

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

1 change: 0 additions & 1 deletion src/Calendar/beta/examples/Stop-MgBetaGroupEvent.md
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion src/Calendar/v1.0/examples/Invoke-MgAcceptGroupEvent.md
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

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

1 change: 0 additions & 1 deletion src/Calendar/v1.0/examples/Invoke-MgDeclineGroupEvent.md
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

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

1 change: 0 additions & 1 deletion src/Calendar/v1.0/examples/Invoke-MgForwardGroupEvent.md
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

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

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

```powershell

Import-Module Microsoft.Graph.Calendar

Remove-MgUserCalendarPermanent -UserId $userId

```
This example shows how to use the Remove-MgUserCalendarPermanent Cmdlet.

1 change: 0 additions & 1 deletion src/Calendar/v1.0/examples/Stop-MgGroupEvent.md
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Remove-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participan
```
This example shows how to use the Remove-MgCommunicationCallParticipant Cmdlet.

### Example 2: Code snippet
### Example 3: Code snippet

```powershell

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

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

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

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

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

```powershell

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

```powershell

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

```powershell

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
### Example 1: Publish all sites and shared cookies

```powershell

Import-Module Microsoft.Graph.Beta.DeviceManagement

$params = @{
revision = "1.0"
}

Publish-MgBetaAdminEdgeInternetExplorerModeSiteList -BrowserSiteListId $browserSiteListId -BodyParameter $params

```
This example will publish all sites and shared cookies

### Example 2: Publish specific sites and shared cookies

```powershell

Import-Module Microsoft.Graph.Beta.DeviceManagement

$params = @{
revision = "1.0"
sites = @(
@{
id = "53e5f971-fc7b-4cd3-a1bf-34d7c0416882"
}
@{
id = "2e27cc86-3662-447e-b751-274fb9f869ea"
}
)
sharedCookies = @(
@{
id = "7f639835-23ab-4793-b1e6-1a06fad127a2"
}
)
}

Publish-MgBetaAdminEdgeInternetExplorerModeSiteList -BrowserSiteListId $browserSiteListId -BodyParameter $params

```
This example will publish specific sites and shared cookies

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

Set-MgBetaDeviceManagementMonitoringAlertRecordPortalNotificationAsSent -AlertRecordId $alertRecordId

```
This example shows how to use the Set-MgBetaDeviceManagementMonitoringAlertRecordPortalNotificationAsSent Cmdlet.

Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,32 @@
Import-Module Microsoft.Graph.DeviceManagement

$params = @{
"@odata.type" = "#microsoft.graph.windowsDefenderAdvancedThreatProtectionConfiguration"
"@odata.type" = "#microsoft.graph.macOSGeneralDeviceConfiguration"
description = "Description value"
displayName = "Display Name value"
version = 7
allowSampleSharing = $true
enableExpeditedTelemetryReporting = $true
compliantAppsList = @(
@{
"@odata.type" = "microsoft.graph.appListItem"
name = "Name value"
publisher = "Publisher value"
appStoreUrl = "https://example.com/appStoreUrl/"
appId = "App Id value"
}
)
compliantAppListType = "appsInListCompliant"
emailInDomainSuffixes = @(
"Email In Domain Suffixes value"
)
passwordBlockSimple = $true
passwordExpirationDays =
passwordMinimumCharacterSetCount =
passwordMinimumLength =
passwordMinutesOfInactivityBeforeLock =
passwordMinutesOfInactivityBeforeScreenTimeout =
passwordPreviousPasswordBlockCount =
passwordRequiredType = "alphanumeric"
passwordRequired = $true
}

New-MgDeviceManagementDeviceConfiguration -BodyParameter $params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,20 @@
Import-Module Microsoft.Graph.DeviceManagement

$params = @{
"@odata.type" = "#microsoft.graph.windows10MobileCompliancePolicy"
"@odata.type" = "#microsoft.graph.windows81CompliancePolicy"
description = "Description value"
displayName = "Display Name value"
version = 7
passwordRequired = $true
passwordBlockSimple = $true
passwordExpirationDays =
passwordMinimumLength =
passwordMinutesOfInactivityBeforeLock =
passwordMinimumCharacterSetCount =
passwordRequiredType = "alphanumeric"
passwordPreviousPasswordBlockCount =
passwordExpirationDays =
passwordMinutesOfInactivityBeforeLock =
passwordRequireToUnlockFromIdle = $true
osMinimumVersion = "Os Minimum Version value"
osMaximumVersion = "Os Maximum Version value"
earlyLaunchAntiMalwareDriverEnabled = $true
bitLockerEnabled = $true
secureBootEnabled = $true
codeIntegrityEnabled = $true
storageRequireEncryption = $true
}

Expand Down
Loading
Loading