exports/v1.0/ProxyCmdletDefinitions.ps1
# ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action wipeManagedAppRegistrationsByDeviceTag .Description Invoke action wipeManagedAppRegistrationsByDeviceTag .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsVloam1UsersUserIdMicrosoftGraphWipemanagedappregistrationsbydevicetagPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsVloam1UsersUserIdMicrosoftGraphWipemanagedappregistrationsbydevicetagPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [DeviceTag <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/clear-mgusermanagedappregistrationbydevicetag #> function Clear-MgUserManagedAppRegistrationByDeviceTag { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='WipeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Wipe', Mandatory)] [Parameter(ParameterSetName='WipeExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='WipeViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='WipeViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Wipe', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='WipeViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsVloam1UsersUserIdMicrosoftGraphWipemanagedappregistrationsbydevicetagPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='WipeExpanded')] [Parameter(ParameterSetName='WipeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='WipeExpanded')] [Parameter(ParameterSetName='WipeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DeviceTag}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Wipe = 'Microsoft.Graph.Users.Actions.private\Clear-MgUserManagedAppRegistrationByDeviceTag_Wipe'; WipeExpanded = 'Microsoft.Graph.Users.Actions.private\Clear-MgUserManagedAppRegistrationByDeviceTag_WipeExpanded'; WipeViaIdentity = 'Microsoft.Graph.Users.Actions.private\Clear-MgUserManagedAppRegistrationByDeviceTag_WipeViaIdentity'; WipeViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Clear-MgUserManagedAppRegistrationByDeviceTag_WipeViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action wipe .Description Invoke action wipe .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths14R8Rr7UsersUserIdManageddevicesManageddeviceIdMicrosoftGraphWipePostRequestbodyContentApplicationJsonSchema1 .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths14R8Rr7UsersUserIdManageddevicesManageddeviceIdMicrosoftGraphWipePostRequestbodyContentApplicationJsonSchema1>: . [(Any) <Object>]: This indicates any property can be added to this object. [KeepEnrollmentData <Boolean?>]: [KeepUserData <Boolean?>]: [MacOSUnlockCode <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/clear-mgusermanageddevice #> function Clear-MgUserManagedDevice { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='WipeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Wipe', Mandatory)] [Parameter(ParameterSetName='WipeExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Wipe', Mandatory)] [Parameter(ParameterSetName='WipeExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='WipeViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='WipeViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Wipe', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='WipeViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths14R8Rr7UsersUserIdManageddevicesManageddeviceIdMicrosoftGraphWipePostRequestbodyContentApplicationJsonSchema1] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='WipeExpanded')] [Parameter(ParameterSetName='WipeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='WipeExpanded')] [Parameter(ParameterSetName='WipeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${KeepEnrollmentData}, [Parameter(ParameterSetName='WipeExpanded')] [Parameter(ParameterSetName='WipeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${KeepUserData}, [Parameter(ParameterSetName='WipeExpanded')] [Parameter(ParameterSetName='WipeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${MacOSUnlockCode}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Wipe = 'Microsoft.Graph.Users.Actions.private\Clear-MgUserManagedDevice_Wipe'; WipeExpanded = 'Microsoft.Graph.Users.Actions.private\Clear-MgUserManagedDevice_WipeExpanded'; WipeViaIdentity = 'Microsoft.Graph.Users.Actions.private\Clear-MgUserManagedDevice_WipeViaIdentity'; WipeViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Clear-MgUserManagedDevice_WipeViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action checkMemberGroups .Description Invoke action checkMemberGroups .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsDyyrb2UsersUserIdMicrosoftGraphCheckmembergroupsPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsDyyrb2UsersUserIdMicrosoftGraphCheckmembergroupsPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [GroupIds <String[]>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/confirm-mgusermembergroup #> function Confirm-MgUserMemberGroup { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Check', Mandatory)] [Parameter(ParameterSetName='CheckExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsDyyrb2UsersUserIdMicrosoftGraphCheckmembergroupsPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CheckExpanded')] [Parameter(ParameterSetName='CheckViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CheckExpanded')] [Parameter(ParameterSetName='CheckViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${GroupIds}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Check = 'Microsoft.Graph.Users.Actions.private\Confirm-MgUserMemberGroup_Check'; CheckExpanded = 'Microsoft.Graph.Users.Actions.private\Confirm-MgUserMemberGroup_CheckExpanded'; CheckViaIdentity = 'Microsoft.Graph.Users.Actions.private\Confirm-MgUserMemberGroup_CheckViaIdentity'; CheckViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Confirm-MgUserMemberGroup_CheckViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action checkMemberObjects .Description Invoke action checkMemberObjects .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsJ9Yxi4UsersUserIdMicrosoftGraphCheckmemberobjectsPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsJ9Yxi4UsersUserIdMicrosoftGraphCheckmemberobjectsPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Ids <String[]>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/confirm-mgusermemberobject #> function Confirm-MgUserMemberObject { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Check', Mandatory)] [Parameter(ParameterSetName='CheckExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsJ9Yxi4UsersUserIdMicrosoftGraphCheckmemberobjectsPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CheckExpanded')] [Parameter(ParameterSetName='CheckViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CheckExpanded')] [Parameter(ParameterSetName='CheckViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Ids}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Check = 'Microsoft.Graph.Users.Actions.private\Confirm-MgUserMemberObject_Check'; CheckExpanded = 'Microsoft.Graph.Users.Actions.private\Confirm-MgUserMemberObject_CheckExpanded'; CheckViaIdentity = 'Microsoft.Graph.Users.Actions.private\Confirm-MgUserMemberObject_CheckViaIdentity'; CheckViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Confirm-MgUserMemberObject_CheckViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action copy .Description Invoke action copy .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1E02JcUsersUserIdMailfoldersMailfolderIdChildfoldersMailfolderId1MicrosoftGraphCopyPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMailFolder .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1E02JcUsersUserIdMailfoldersMailfolderIdChildfoldersMailfolderId1MicrosoftGraphCopyPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [DestinationId <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/copy-mgusermailfolderchildfolder #> function Copy-MgUserMailFolderChildFolder { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMailFolder])] [CmdletBinding(DefaultParameterSetName='CopyExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Copy', Mandatory)] [Parameter(ParameterSetName='CopyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId}, [Parameter(ParameterSetName='Copy', Mandatory)] [Parameter(ParameterSetName='CopyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId1}, [Parameter(ParameterSetName='Copy', Mandatory)] [Parameter(ParameterSetName='CopyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CopyViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Copy', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1E02JcUsersUserIdMailfoldersMailfolderIdChildfoldersMailfolderId1MicrosoftGraphCopyPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CopyExpanded')] [Parameter(ParameterSetName='CopyViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CopyExpanded')] [Parameter(ParameterSetName='CopyViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DestinationId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Copy = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMailFolderChildFolder_Copy'; CopyExpanded = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMailFolderChildFolder_CopyExpanded'; CopyViaIdentity = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMailFolderChildFolder_CopyViaIdentity'; CopyViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMailFolderChildFolder_CopyViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action copy .Description Invoke action copy .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsDy94GcUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphCopyPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsDy94GcUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphCopyPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [DestinationId <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/copy-mgusermailfoldermessage #> function Copy-MgUserMailFolderMessage { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage])] [CmdletBinding(DefaultParameterSetName='CopyExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Copy', Mandatory)] [Parameter(ParameterSetName='CopyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId}, [Parameter(ParameterSetName='Copy', Mandatory)] [Parameter(ParameterSetName='CopyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Copy', Mandatory)] [Parameter(ParameterSetName='CopyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CopyViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Copy', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsDy94GcUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphCopyPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CopyExpanded')] [Parameter(ParameterSetName='CopyViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CopyExpanded')] [Parameter(ParameterSetName='CopyViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DestinationId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Copy = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMailFolderMessage_Copy'; CopyExpanded = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMailFolderMessage_CopyExpanded'; CopyViaIdentity = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMailFolderMessage_CopyViaIdentity'; CopyViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMailFolderMessage_CopyViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action copy .Description Invoke action copy .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsSdgf1MUsersUserIdMailfoldersMailfolderIdMicrosoftGraphCopyPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMailFolder .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsSdgf1MUsersUserIdMailfoldersMailfolderIdMicrosoftGraphCopyPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [DestinationId <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/copy-mgusermailfolder #> function Copy-MgUserMailFolder { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMailFolder])] [CmdletBinding(DefaultParameterSetName='CopyExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Copy', Mandatory)] [Parameter(ParameterSetName='CopyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId}, [Parameter(ParameterSetName='Copy', Mandatory)] [Parameter(ParameterSetName='CopyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CopyViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Copy', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsSdgf1MUsersUserIdMailfoldersMailfolderIdMicrosoftGraphCopyPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CopyExpanded')] [Parameter(ParameterSetName='CopyViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CopyExpanded')] [Parameter(ParameterSetName='CopyViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DestinationId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Copy = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMailFolder_Copy'; CopyExpanded = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMailFolder_CopyExpanded'; CopyViaIdentity = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMailFolder_CopyViaIdentity'; CopyViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMailFolder_CopyViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action copy .Description Invoke action copy .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsQbims6UsersUserIdMessagesMessageIdMicrosoftGraphCopyPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsQbims6UsersUserIdMessagesMessageIdMicrosoftGraphCopyPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [DestinationId <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/copy-mgusermessage #> function Copy-MgUserMessage { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage])] [CmdletBinding(DefaultParameterSetName='CopyExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Copy', Mandatory)] [Parameter(ParameterSetName='CopyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Copy', Mandatory)] [Parameter(ParameterSetName='CopyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CopyViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Copy', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsQbims6UsersUserIdMessagesMessageIdMicrosoftGraphCopyPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CopyExpanded')] [Parameter(ParameterSetName='CopyViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CopyExpanded')] [Parameter(ParameterSetName='CopyViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DestinationId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Copy = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMessage_Copy'; CopyExpanded = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMessage_CopyExpanded'; CopyViaIdentity = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMessage_CopyViaIdentity'; CopyViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserMessage_CopyViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action copyNotebook .Description Invoke action copyNotebook .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths47PyxmUsersUserIdOnenoteNotebooksNotebookIdMicrosoftGraphCopynotebookPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnenoteOperation .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths47PyxmUsersUserIdOnenoteNotebooksNotebookIdMicrosoftGraphCopynotebookPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [GroupId <String>]: [NotebookFolder <String>]: [RenameAs <String>]: [SiteCollectionId <String>]: [SiteId <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/copy-mguseronenotenotebook #> function Copy-MgUserOnenoteNotebook { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnenoteOperation])] [CmdletBinding(DefaultParameterSetName='CopyExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Copy1', Mandatory)] [Parameter(ParameterSetName='CopyExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of notebook ${NotebookId}, [Parameter(ParameterSetName='Copy1', Mandatory)] [Parameter(ParameterSetName='CopyExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CopyViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Copy1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths47PyxmUsersUserIdOnenoteNotebooksNotebookIdMicrosoftGraphCopynotebookPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${GroupId}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${NotebookFolder}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RenameAs}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${SiteCollectionId}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${SiteId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Copy1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenoteNotebook_Copy1'; CopyExpanded1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenoteNotebook_CopyExpanded1'; CopyViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenoteNotebook_CopyViaIdentity1'; CopyViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenoteNotebook_CopyViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action copyToSection .Description Invoke action copyToSection .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsEy9Pr2UsersUserIdOnenotePagesOnenotepageIdMicrosoftGraphCopytosectionPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnenoteOperation .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsEy9Pr2UsersUserIdOnenotePagesOnenotepageIdMicrosoftGraphCopytosectionPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [GroupId <String>]: [Id <String>]: [SiteCollectionId <String>]: [SiteId <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/copy-mguseronenotepagetosection #> function Copy-MgUserOnenotePageToSection { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnenoteOperation])] [CmdletBinding(DefaultParameterSetName='CopyExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Copy1', Mandatory)] [Parameter(ParameterSetName='CopyExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of onenotePage ${OnenotePageId}, [Parameter(ParameterSetName='Copy1', Mandatory)] [Parameter(ParameterSetName='CopyExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CopyViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Copy1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsEy9Pr2UsersUserIdOnenotePagesOnenotepageIdMicrosoftGraphCopytosectionPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${GroupId}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Id}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${SiteCollectionId}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${SiteId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Copy1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenotePageToSection_Copy1'; CopyExpanded1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenotePageToSection_CopyExpanded1'; CopyViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenotePageToSection_CopyViaIdentity1'; CopyViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenotePageToSection_CopyViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action copyToNotebook .Description Invoke action copyToNotebook .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths26Y9CmUsersUserIdOnenoteSectionsOnenotesectionIdMicrosoftGraphCopytonotebookPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnenoteOperation .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths26Y9CmUsersUserIdOnenoteSectionsOnenotesectionIdMicrosoftGraphCopytonotebookPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [GroupId <String>]: [Id <String>]: [RenameAs <String>]: [SiteCollectionId <String>]: [SiteId <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/copy-mguseronenotesectiontonotebook #> function Copy-MgUserOnenoteSectionToNotebook { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnenoteOperation])] [CmdletBinding(DefaultParameterSetName='CopyExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Copy1', Mandatory)] [Parameter(ParameterSetName='CopyExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of onenoteSection ${OnenoteSectionId}, [Parameter(ParameterSetName='Copy1', Mandatory)] [Parameter(ParameterSetName='CopyExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CopyViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Copy1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths26Y9CmUsersUserIdOnenoteSectionsOnenotesectionIdMicrosoftGraphCopytonotebookPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${GroupId}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Id}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RenameAs}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${SiteCollectionId}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${SiteId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Copy1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenoteSectionToNotebook_Copy1'; CopyExpanded1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenoteSectionToNotebook_CopyExpanded1'; CopyViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenoteSectionToNotebook_CopyViaIdentity1'; CopyViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenoteSectionToNotebook_CopyViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action copyToSectionGroup .Description Invoke action copyToSectionGroup .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsRppvczUsersUserIdOnenoteSectionsOnenotesectionIdMicrosoftGraphCopytosectiongroupPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnenoteOperation .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsRppvczUsersUserIdOnenoteSectionsOnenotesectionIdMicrosoftGraphCopytosectiongroupPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [GroupId <String>]: [Id <String>]: [RenameAs <String>]: [SiteCollectionId <String>]: [SiteId <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/copy-mguseronenotesectiontosectiongroup #> function Copy-MgUserOnenoteSectionToSectionGroup { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnenoteOperation])] [CmdletBinding(DefaultParameterSetName='CopyExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Copy1', Mandatory)] [Parameter(ParameterSetName='CopyExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of onenoteSection ${OnenoteSectionId}, [Parameter(ParameterSetName='Copy1', Mandatory)] [Parameter(ParameterSetName='CopyExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CopyViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Copy1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CopyViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsRppvczUsersUserIdOnenoteSectionsOnenotesectionIdMicrosoftGraphCopytosectiongroupPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${GroupId}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Id}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${RenameAs}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${SiteCollectionId}, [Parameter(ParameterSetName='CopyExpanded1')] [Parameter(ParameterSetName='CopyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${SiteId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Copy1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenoteSectionToSectionGroup_Copy1'; CopyExpanded1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenoteSectionToSectionGroup_CopyExpanded1'; CopyViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenoteSectionToSectionGroup_CopyViaIdentity1'; CopyViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\Copy-MgUserOnenoteSectionToSectionGroup_CopyViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action disableLostMode .Description Invoke action disableLostMode .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/disable-mgusermanageddevicelostmode #> function Disable-MgUserManagedDeviceLostMode { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Disable', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Disable', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Disable', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DisableViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Disable = 'Microsoft.Graph.Users.Actions.private\Disable-MgUserManagedDeviceLostMode_Disable'; DisableViaIdentity = 'Microsoft.Graph.Users.Actions.private\Disable-MgUserManagedDeviceLostMode_DisableViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action exportPersonalData .Description Invoke action exportPersonalData .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1Xhdcw6UsersUserIdMicrosoftGraphExportpersonaldataPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1Xhdcw6UsersUserIdMicrosoftGraphExportpersonaldataPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [StorageLocation <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/export-mguserpersonaldata #> function Export-MgUserPersonalData { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ExportExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Export', Mandatory)] [Parameter(ParameterSetName='ExportExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='ExportViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ExportViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Export', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ExportViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1Xhdcw6UsersUserIdMicrosoftGraphExportpersonaldataPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='ExportExpanded')] [Parameter(ParameterSetName='ExportViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='ExportExpanded')] [Parameter(ParameterSetName='ExportViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${StorageLocation}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Export = 'Microsoft.Graph.Users.Actions.private\Export-MgUserPersonalData_Export'; ExportExpanded = 'Microsoft.Graph.Users.Actions.private\Export-MgUserPersonalData_ExportExpanded'; ExportViaIdentity = 'Microsoft.Graph.Users.Actions.private\Export-MgUserPersonalData_ExportViaIdentity'; ExportViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Export-MgUserPersonalData_ExportViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action locateDevice .Description Invoke action locateDevice .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/find-mgusermanageddevice #> function Find-MgUserManagedDevice { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Locate', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Locate', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Locate', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='LocateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Locate = 'Microsoft.Graph.Users.Actions.private\Find-MgUserManagedDevice_Locate'; LocateViaIdentity = 'Microsoft.Graph.Users.Actions.private\Find-MgUserManagedDevice_LocateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action findMeetingTimes .Description Invoke action findMeetingTimes .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsSzpbzfUsersUserIdMicrosoftGraphFindmeetingtimesPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMeetingTimeSuggestionsResult .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. ATTENDEES <IMicrosoftGraphAttendeeBase[]>: . [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Type <String>]: attendeeType BODYPARAMETER <IPathsSzpbzfUsersUserIdMicrosoftGraphFindmeetingtimesPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Attendees <IMicrosoftGraphAttendeeBase[]>]: [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Type <String>]: attendeeType [IsOrganizerOptional <Boolean?>]: [LocationConstraint <IMicrosoftGraphLocationConstraint>]: locationConstraint [(Any) <Object>]: This indicates any property can be added to this object. [IsRequired <Boolean?>]: The client requests the service to include in the response a meeting location for the meeting. If this is true and all the resources are busy, findMeetingTimes will not return any meeting time suggestions. If this is false and all the resources are busy, findMeetingTimes would still look for meeting times without locations. [Locations <IMicrosoftGraphLocationConstraintItem[]>]: Constraint information for one or more locations that the client requests for the meeting. [Address <IMicrosoftGraphPhysicalAddress>]: physicalAddress [(Any) <Object>]: This indicates any property can be added to this object. [City <String>]: The city. [CountryOrRegion <String>]: The country or region. It's a free-format string value, for example, 'United States'. [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Coordinates <IMicrosoftGraphOutlookGeoCoordinates>]: outlookGeoCoordinates [(Any) <Object>]: This indicates any property can be added to this object. [Accuracy <Double?>]: The accuracy of the latitude and longitude. As an example, the accuracy can be measured in meters, such as the latitude and longitude are accurate to within 50 meters. [Altitude <Double?>]: The altitude of the location. [AltitudeAccuracy <Double?>]: The accuracy of the altitude. [Latitude <Double?>]: The latitude of the location. [Longitude <Double?>]: The longitude of the location. [DisplayName <String>]: The name associated with the location. [LocationEmailAddress <String>]: Optional email address of the location. [LocationType <String>]: locationType [LocationUri <String>]: Optional URI representing the location. [UniqueId <String>]: For internal use only. [UniqueIdType <String>]: locationUniqueIdType [ResolveAvailability <Boolean?>]: If set to true and the specified resource is busy, findMeetingTimes looks for another resource that is free. If set to false and the specified resource is busy, findMeetingTimes returns the resource best ranked in the user's cache without checking if it's free. Default is true. [SuggestLocation <Boolean?>]: The client requests the service to suggest one or more meeting locations. [MaxCandidates <Int32?>]: [MeetingDuration <TimeSpan?>]: [MinimumAttendeePercentage <Double?>]: [ReturnSuggestionReasons <Boolean?>]: [TimeConstraint <IMicrosoftGraphTimeConstraint>]: timeConstraint [(Any) <Object>]: This indicates any property can be added to this object. [ActivityDomain <String>]: activityDomain [TimeSlots <IMicrosoftGraphTimeSlot[]>]: [End <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [Start <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user LOCATIONCONSTRAINT <IMicrosoftGraphLocationConstraint>: locationConstraint [(Any) <Object>]: This indicates any property can be added to this object. [IsRequired <Boolean?>]: The client requests the service to include in the response a meeting location for the meeting. If this is true and all the resources are busy, findMeetingTimes will not return any meeting time suggestions. If this is false and all the resources are busy, findMeetingTimes would still look for meeting times without locations. [Locations <IMicrosoftGraphLocationConstraintItem[]>]: Constraint information for one or more locations that the client requests for the meeting. [Address <IMicrosoftGraphPhysicalAddress>]: physicalAddress [(Any) <Object>]: This indicates any property can be added to this object. [City <String>]: The city. [CountryOrRegion <String>]: The country or region. It's a free-format string value, for example, 'United States'. [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Coordinates <IMicrosoftGraphOutlookGeoCoordinates>]: outlookGeoCoordinates [(Any) <Object>]: This indicates any property can be added to this object. [Accuracy <Double?>]: The accuracy of the latitude and longitude. As an example, the accuracy can be measured in meters, such as the latitude and longitude are accurate to within 50 meters. [Altitude <Double?>]: The altitude of the location. [AltitudeAccuracy <Double?>]: The accuracy of the altitude. [Latitude <Double?>]: The latitude of the location. [Longitude <Double?>]: The longitude of the location. [DisplayName <String>]: The name associated with the location. [LocationEmailAddress <String>]: Optional email address of the location. [LocationType <String>]: locationType [LocationUri <String>]: Optional URI representing the location. [UniqueId <String>]: For internal use only. [UniqueIdType <String>]: locationUniqueIdType [ResolveAvailability <Boolean?>]: If set to true and the specified resource is busy, findMeetingTimes looks for another resource that is free. If set to false and the specified resource is busy, findMeetingTimes returns the resource best ranked in the user's cache without checking if it's free. Default is true. [SuggestLocation <Boolean?>]: The client requests the service to suggest one or more meeting locations. TIMECONSTRAINT <IMicrosoftGraphTimeConstraint>: timeConstraint [(Any) <Object>]: This indicates any property can be added to this object. [ActivityDomain <String>]: activityDomain [TimeSlots <IMicrosoftGraphTimeSlot[]>]: [End <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [Start <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/find-mgusermeetingtime #> function Find-MgUserMeetingTime { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMeetingTimeSuggestionsResult])] [CmdletBinding(DefaultParameterSetName='FindExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Find', Mandatory)] [Parameter(ParameterSetName='FindExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='FindViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='FindViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Find', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='FindViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsSzpbzfUsersUserIdMicrosoftGraphFindmeetingtimesPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='FindExpanded')] [Parameter(ParameterSetName='FindViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='FindExpanded')] [Parameter(ParameterSetName='FindViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAttendeeBase[]] # . # To construct, see NOTES section for ATTENDEES properties and create a hash table. ${Attendees}, [Parameter(ParameterSetName='FindExpanded')] [Parameter(ParameterSetName='FindViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsOrganizerOptional}, [Parameter(ParameterSetName='FindExpanded')] [Parameter(ParameterSetName='FindViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphLocationConstraint] # locationConstraint # To construct, see NOTES section for LOCATIONCONSTRAINT properties and create a hash table. ${LocationConstraint}, [Parameter(ParameterSetName='FindExpanded')] [Parameter(ParameterSetName='FindViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${MaxCandidates}, [Parameter(ParameterSetName='FindExpanded')] [Parameter(ParameterSetName='FindViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.TimeSpan] # . ${MeetingDuration}, [Parameter(ParameterSetName='FindExpanded')] [Parameter(ParameterSetName='FindViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Double] # . ${MinimumAttendeePercentage}, [Parameter(ParameterSetName='FindExpanded')] [Parameter(ParameterSetName='FindViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${ReturnSuggestionReasons}, [Parameter(ParameterSetName='FindExpanded')] [Parameter(ParameterSetName='FindViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphTimeConstraint] # timeConstraint # To construct, see NOTES section for TIMECONSTRAINT properties and create a hash table. ${TimeConstraint}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Find = 'Microsoft.Graph.Users.Actions.private\Find-MgUserMeetingTime_Find'; FindExpanded = 'Microsoft.Graph.Users.Actions.private\Find-MgUserMeetingTime_FindExpanded'; FindViaIdentity = 'Microsoft.Graph.Users.Actions.private\Find-MgUserMeetingTime_FindViaIdentity'; FindViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Find-MgUserMeetingTime_FindViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action getAvailableExtensionProperties .Description Invoke action getAvailableExtensionProperties .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1RkkrvbUsersMicrosoftGraphGetavailableextensionpropertiesPostRequestbodyContentApplicationJsonSchema .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphExtensionProperty .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1RkkrvbUsersMicrosoftGraphGetavailableextensionpropertiesPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [IsSyncedFromOnPremises <Boolean?>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/get-mguseravailableextensionproperty #> function Get-MgUserAvailableExtensionProperty { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphExtensionProperty])] [CmdletBinding(DefaultParameterSetName='GetExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Get', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1RkkrvbUsersMicrosoftGraphGetavailableextensionpropertiesPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='GetExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='GetExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsSyncedFromOnPremises}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Users.Actions.private\Get-MgUserAvailableExtensionProperty_Get'; GetExpanded = 'Microsoft.Graph.Users.Actions.private\Get-MgUserAvailableExtensionProperty_GetExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action getByIds .Description Invoke action getByIds .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsBjm3ZyUsersMicrosoftGraphGetbyidsPostRequestbodyContentApplicationJsonSchema .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphDirectoryObject .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsBjm3ZyUsersMicrosoftGraphGetbyidsPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Ids <String[]>]: [Types <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/get-mguserbyid #> function Get-MgUserById { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphDirectoryObject])] [CmdletBinding(DefaultParameterSetName='GetExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Get1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsBjm3ZyUsersMicrosoftGraphGetbyidsPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='GetExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='GetExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Ids}, [Parameter(ParameterSetName='GetExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Types}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get1 = 'Microsoft.Graph.Users.Actions.private\Get-MgUserById_Get1'; GetExpanded1 = 'Microsoft.Graph.Users.Actions.private\Get-MgUserById_GetExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action getSchedule .Description Invoke action getSchedule .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsQue4OrUsersUserIdCalendarsCalendarIdMicrosoftGraphGetschedulePostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphScheduleInformation .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsQue4OrUsersUserIdCalendarsCalendarIdMicrosoftGraphGetschedulePostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [AvailabilityViewInterval <Int32?>]: [EndTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [Schedules <String[]>]: [StartTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone ENDTIME <IMicrosoftGraphDateTimeZone>: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user STARTTIME <IMicrosoftGraphDateTimeZone>: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/get-mgusercalendarschedule #> function Get-MgUserCalendarSchedule { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphScheduleInformation])] [CmdletBinding(DefaultParameterSetName='GetExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Get1', Mandatory)] [Parameter(ParameterSetName='GetExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of calendar ${CalendarId}, [Parameter(ParameterSetName='Get1', Mandatory)] [Parameter(ParameterSetName='GetExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Get1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsQue4OrUsersUserIdCalendarsCalendarIdMicrosoftGraphGetschedulePostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='GetExpanded1')] [Parameter(ParameterSetName='GetViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='GetExpanded1')] [Parameter(ParameterSetName='GetViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${AvailabilityViewInterval}, [Parameter(ParameterSetName='GetExpanded1')] [Parameter(ParameterSetName='GetViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphDateTimeZone] # dateTimeTimeZone # To construct, see NOTES section for ENDTIME properties and create a hash table. ${EndTime}, [Parameter(ParameterSetName='GetExpanded1')] [Parameter(ParameterSetName='GetViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Schedules}, [Parameter(ParameterSetName='GetExpanded1')] [Parameter(ParameterSetName='GetViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphDateTimeZone] # dateTimeTimeZone # To construct, see NOTES section for STARTTIME properties and create a hash table. ${StartTime}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get1 = 'Microsoft.Graph.Users.Actions.private\Get-MgUserCalendarSchedule_Get1'; GetExpanded1 = 'Microsoft.Graph.Users.Actions.private\Get-MgUserCalendarSchedule_GetExpanded1'; GetViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\Get-MgUserCalendarSchedule_GetViaIdentity1'; GetViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\Get-MgUserCalendarSchedule_GetViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action getSchedule .Description Invoke action getSchedule .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsQe3PsvUsersUserIdCalendarMicrosoftGraphGetschedulePostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphScheduleInformation .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsQe3PsvUsersUserIdCalendarMicrosoftGraphGetschedulePostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [AvailabilityViewInterval <Int32?>]: [EndTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [Schedules <String[]>]: [StartTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone ENDTIME <IMicrosoftGraphDateTimeZone>: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user STARTTIME <IMicrosoftGraphDateTimeZone>: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/get-mguserdefaultcalendarschedule #> function Get-MgUserDefaultCalendarSchedule { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphScheduleInformation])] [CmdletBinding(DefaultParameterSetName='GetExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Get', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsQe3PsvUsersUserIdCalendarMicrosoftGraphGetschedulePostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${AvailabilityViewInterval}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphDateTimeZone] # dateTimeTimeZone # To construct, see NOTES section for ENDTIME properties and create a hash table. ${EndTime}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Schedules}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphDateTimeZone] # dateTimeTimeZone # To construct, see NOTES section for STARTTIME properties and create a hash table. ${StartTime}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Users.Actions.private\Get-MgUserDefaultCalendarSchedule_Get'; GetExpanded = 'Microsoft.Graph.Users.Actions.private\Get-MgUserDefaultCalendarSchedule_GetExpanded'; GetViaIdentity = 'Microsoft.Graph.Users.Actions.private\Get-MgUserDefaultCalendarSchedule_GetViaIdentity'; GetViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Get-MgUserDefaultCalendarSchedule_GetViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action getSchedule .Description Invoke action getSchedule .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths11Iq6NwUsersUserIdEventsEventIdCalendarMicrosoftGraphGetschedulePostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphScheduleInformation .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths11Iq6NwUsersUserIdEventsEventIdCalendarMicrosoftGraphGetschedulePostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [AvailabilityViewInterval <Int32?>]: [EndTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [Schedules <String[]>]: [StartTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone ENDTIME <IMicrosoftGraphDateTimeZone>: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user STARTTIME <IMicrosoftGraphDateTimeZone>: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/get-mgusereventcalendarschedule #> function Get-MgUserEventCalendarSchedule { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphScheduleInformation])] [CmdletBinding(DefaultParameterSetName='GetExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Get', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths11Iq6NwUsersUserIdEventsEventIdCalendarMicrosoftGraphGetschedulePostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Int32] # . ${AvailabilityViewInterval}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphDateTimeZone] # dateTimeTimeZone # To construct, see NOTES section for ENDTIME properties and create a hash table. ${EndTime}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Schedules}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphDateTimeZone] # dateTimeTimeZone # To construct, see NOTES section for STARTTIME properties and create a hash table. ${StartTime}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Users.Actions.private\Get-MgUserEventCalendarSchedule_Get'; GetExpanded = 'Microsoft.Graph.Users.Actions.private\Get-MgUserEventCalendarSchedule_GetExpanded'; GetViaIdentity = 'Microsoft.Graph.Users.Actions.private\Get-MgUserEventCalendarSchedule_GetViaIdentity'; GetViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Get-MgUserEventCalendarSchedule_GetViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action getMailTips .Description Invoke action getMailTips .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsPp15VbUsersUserIdMicrosoftGraphGetmailtipsPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMailTips .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsPp15VbUsersUserIdMicrosoftGraphGetmailtipsPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [EmailAddresses <String[]>]: [MailTipsOptions <String>]: mailTipsType INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/get-mgusermailtip #> function Get-MgUserMailTip { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMailTips])] [CmdletBinding(DefaultParameterSetName='GetExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Get', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsPp15VbUsersUserIdMicrosoftGraphGetmailtipsPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${EmailAddresses}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # mailTipsType ${MailTipsOptions}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Users.Actions.private\Get-MgUserMailTip_Get'; GetExpanded = 'Microsoft.Graph.Users.Actions.private\Get-MgUserMailTip_GetExpanded'; GetViaIdentity = 'Microsoft.Graph.Users.Actions.private\Get-MgUserMailTip_GetViaIdentity'; GetViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Get-MgUserMailTip_GetViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action getMemberGroups .Description Invoke action getMemberGroups .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths18H5WxmUsersUserIdMicrosoftGraphGetmembergroupsPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths18H5WxmUsersUserIdMicrosoftGraphGetmembergroupsPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [SecurityEnabledOnly <Boolean?>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/get-mgusermembergroup #> function Get-MgUserMemberGroup { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='GetExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Get', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths18H5WxmUsersUserIdMicrosoftGraphGetmembergroupsPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SecurityEnabledOnly}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Users.Actions.private\Get-MgUserMemberGroup_Get'; GetExpanded = 'Microsoft.Graph.Users.Actions.private\Get-MgUserMemberGroup_GetExpanded'; GetViaIdentity = 'Microsoft.Graph.Users.Actions.private\Get-MgUserMemberGroup_GetViaIdentity'; GetViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Get-MgUserMemberGroup_GetViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action getMemberObjects .Description Invoke action getMemberObjects .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths5Y1AzfUsersUserIdMicrosoftGraphGetmemberobjectsPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.String .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths5Y1AzfUsersUserIdMicrosoftGraphGetmemberobjectsPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [SecurityEnabledOnly <Boolean?>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/get-mgusermemberobject #> function Get-MgUserMemberObject { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='GetExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Get', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths5Y1AzfUsersUserIdMicrosoftGraphGetmemberobjectsPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='GetExpanded')] [Parameter(ParameterSetName='GetViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SecurityEnabledOnly}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.Users.Actions.private\Get-MgUserMemberObject_Get'; GetExpanded = 'Microsoft.Graph.Users.Actions.private\Get-MgUserMemberObject_GetExpanded'; GetViaIdentity = 'Microsoft.Graph.Users.Actions.private\Get-MgUserMemberObject_GetViaIdentity'; GetViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Get-MgUserMemberObject_GetViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action getNotebookFromWebUrl .Description Invoke action getNotebookFromWebUrl .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1Fukv4UsersUserIdOnenoteNotebooksMicrosoftGraphGetnotebookfromweburlPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphCopyNotebookModel .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1Fukv4UsersUserIdOnenoteNotebooksMicrosoftGraphGetnotebookfromweburlPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [WebUrl <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/get-mguseronenotenotebookfromweburl #> function Get-MgUserOnenoteNotebookFromWebUrl { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphCopyNotebookModel])] [CmdletBinding(DefaultParameterSetName='GetExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Get1', Mandatory)] [Parameter(ParameterSetName='GetExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Get1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1Fukv4UsersUserIdOnenoteNotebooksMicrosoftGraphGetnotebookfromweburlPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='GetExpanded1')] [Parameter(ParameterSetName='GetViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='GetExpanded1')] [Parameter(ParameterSetName='GetViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get1 = 'Microsoft.Graph.Users.Actions.private\Get-MgUserOnenoteNotebookFromWebUrl_Get1'; GetExpanded1 = 'Microsoft.Graph.Users.Actions.private\Get-MgUserOnenoteNotebookFromWebUrl_GetExpanded1'; GetViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\Get-MgUserOnenoteNotebookFromWebUrl_GetViaIdentity1'; GetViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\Get-MgUserOnenoteNotebookFromWebUrl_GetViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action tentativelyAccept .Description Invoke action tentativelyAccept .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths14D4S5WUsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphTentativelyacceptPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths14D4S5WUsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphTentativelyacceptPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [SendResponse <Boolean?>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgacceptusereventinstancetentatively #> function Invoke-MgAcceptUserEventInstanceTentatively { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='AcceptExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Accept', Mandatory)] [Parameter(ParameterSetName='AcceptExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Accept', Mandatory)] [Parameter(ParameterSetName='AcceptExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId1}, [Parameter(ParameterSetName='Accept', Mandatory)] [Parameter(ParameterSetName='AcceptExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='AcceptViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='AcceptViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Accept', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='AcceptViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths14D4S5WUsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphTentativelyacceptPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='AcceptExpanded')] [Parameter(ParameterSetName='AcceptViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='AcceptExpanded')] [Parameter(ParameterSetName='AcceptViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='AcceptExpanded')] [Parameter(ParameterSetName='AcceptViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SendResponse}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Accept = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEventInstanceTentatively_Accept'; AcceptExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEventInstanceTentatively_AcceptExpanded'; AcceptViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEventInstanceTentatively_AcceptViaIdentity'; AcceptViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEventInstanceTentatively_AcceptViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action accept .Description Invoke action accept .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1Qs6J67UsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphAcceptPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1Qs6J67UsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphAcceptPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [SendResponse <Boolean?>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgacceptusereventinstance #> function Invoke-MgAcceptUserEventInstance { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='AcceptExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Accept1', Mandatory)] [Parameter(ParameterSetName='AcceptExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Accept1', Mandatory)] [Parameter(ParameterSetName='AcceptExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId1}, [Parameter(ParameterSetName='Accept1', Mandatory)] [Parameter(ParameterSetName='AcceptExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='AcceptViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='AcceptViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Accept1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='AcceptViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1Qs6J67UsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphAcceptPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='AcceptExpanded1')] [Parameter(ParameterSetName='AcceptViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='AcceptExpanded1')] [Parameter(ParameterSetName='AcceptViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='AcceptExpanded1')] [Parameter(ParameterSetName='AcceptViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SendResponse}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Accept1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEventInstance_Accept1'; AcceptExpanded1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEventInstance_AcceptExpanded1'; AcceptViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEventInstance_AcceptViaIdentity1'; AcceptViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEventInstance_AcceptViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action tentativelyAccept .Description Invoke action tentativelyAccept .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1J1KpiuUsersUserIdEventsEventIdMicrosoftGraphTentativelyacceptPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1J1KpiuUsersUserIdEventsEventIdMicrosoftGraphTentativelyacceptPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [SendResponse <Boolean?>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgacceptusereventtentatively #> function Invoke-MgAcceptUserEventTentatively { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='AcceptExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Accept', Mandatory)] [Parameter(ParameterSetName='AcceptExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Accept', Mandatory)] [Parameter(ParameterSetName='AcceptExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='AcceptViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='AcceptViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Accept', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='AcceptViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1J1KpiuUsersUserIdEventsEventIdMicrosoftGraphTentativelyacceptPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='AcceptExpanded')] [Parameter(ParameterSetName='AcceptViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='AcceptExpanded')] [Parameter(ParameterSetName='AcceptViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='AcceptExpanded')] [Parameter(ParameterSetName='AcceptViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SendResponse}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Accept = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEventTentatively_Accept'; AcceptExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEventTentatively_AcceptExpanded'; AcceptViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEventTentatively_AcceptViaIdentity'; AcceptViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEventTentatively_AcceptViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action accept .Description Invoke action accept .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1SpvidmUsersUserIdEventsEventIdMicrosoftGraphAcceptPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1SpvidmUsersUserIdEventsEventIdMicrosoftGraphAcceptPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [SendResponse <Boolean?>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgacceptuserevent #> function Invoke-MgAcceptUserEvent { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='AcceptExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Accept', Mandatory)] [Parameter(ParameterSetName='AcceptExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Accept', Mandatory)] [Parameter(ParameterSetName='AcceptExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='AcceptViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='AcceptViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Accept', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='AcceptViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1SpvidmUsersUserIdEventsEventIdMicrosoftGraphAcceptPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='AcceptExpanded')] [Parameter(ParameterSetName='AcceptViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='AcceptExpanded')] [Parameter(ParameterSetName='AcceptViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='AcceptExpanded')] [Parameter(ParameterSetName='AcceptViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SendResponse}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Accept = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEvent_Accept'; AcceptExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEvent_AcceptExpanded'; AcceptViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEvent_AcceptViaIdentity'; AcceptViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgAcceptUserEvent_AcceptViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action cleanWindowsDevice .Description Invoke action cleanWindowsDevice .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1Nos4SfUsersUserIdManageddevicesManageddeviceIdMicrosoftGraphCleanwindowsdevicePostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1Nos4SfUsersUserIdManageddevicesManageddeviceIdMicrosoftGraphCleanwindowsdevicePostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [KeepUserData <Boolean?>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgcleanusermanageddevicewindowdevice #> function Invoke-MgCleanUserManagedDeviceWindowDevice { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='CleanExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Clean', Mandatory)] [Parameter(ParameterSetName='CleanExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Clean', Mandatory)] [Parameter(ParameterSetName='CleanExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CleanViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CleanViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Clean', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CleanViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1Nos4SfUsersUserIdManageddevicesManageddeviceIdMicrosoftGraphCleanwindowsdevicePostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CleanExpanded')] [Parameter(ParameterSetName='CleanViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CleanExpanded')] [Parameter(ParameterSetName='CleanViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${KeepUserData}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Clean = 'Microsoft.Graph.Users.Actions.private\Invoke-MgCleanUserManagedDeviceWindowDevice_Clean'; CleanExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgCleanUserManagedDeviceWindowDevice_CleanExpanded'; CleanViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgCleanUserManagedDeviceWindowDevice_CleanViaIdentity'; CleanViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgCleanUserManagedDeviceWindowDevice_CleanViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action createOrGet .Description Invoke action createOrGet .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1H47062UsersUserIdOnlinemeetingsMicrosoftGraphCreateorgetPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnlineMeeting .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1H47062UsersUserIdOnlinemeetingsMicrosoftGraphCreateorgetPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [ChatInfo <IMicrosoftGraphChatInfo>]: chatInfo [(Any) <Object>]: This indicates any property can be added to this object. [MessageId <String>]: The unique identifier for a message in a Microsoft Teams channel. [ReplyChainMessageId <String>]: The ID of the reply message. [ThreadId <String>]: The unique identifier for a thread in Microsoft Teams. [EndDateTime <DateTime?>]: [ExternalId <String>]: [Participants <IMicrosoftGraphMeetingParticipants>]: meetingParticipants [(Any) <Object>]: This indicates any property can be added to this object. [Attendees <IMicrosoftGraphMeetingParticipantInfo[]>]: [Identity <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [Role <String>]: [Upn <String>]: User principal name of the participant. [Organizer <IMicrosoftGraphMeetingParticipantInfo>]: meetingParticipantInfo [StartDateTime <DateTime?>]: [Subject <String>]: CHATINFO <IMicrosoftGraphChatInfo>: chatInfo [(Any) <Object>]: This indicates any property can be added to this object. [MessageId <String>]: The unique identifier for a message in a Microsoft Teams channel. [ReplyChainMessageId <String>]: The ID of the reply message. [ThreadId <String>]: The unique identifier for a thread in Microsoft Teams. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user PARTICIPANTS <IMicrosoftGraphMeetingParticipants>: meetingParticipants [(Any) <Object>]: This indicates any property can be added to this object. [Attendees <IMicrosoftGraphMeetingParticipantInfo[]>]: [Identity <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [Role <String>]: [Upn <String>]: User principal name of the participant. [Organizer <IMicrosoftGraphMeetingParticipantInfo>]: meetingParticipantInfo .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgcreateorgetuseronlinemeeting #> function Invoke-MgCreateOrGetUserOnlineMeeting { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnlineMeeting])] [CmdletBinding(DefaultParameterSetName='CreateExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Create1', Mandatory)] [Parameter(ParameterSetName='CreateExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1H47062UsersUserIdOnlinemeetingsMicrosoftGraphCreateorgetPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphChatInfo] # chatInfo # To construct, see NOTES section for CHATINFO properties and create a hash table. ${ChatInfo}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${EndDateTime}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ExternalId}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMeetingParticipants] # meetingParticipants # To construct, see NOTES section for PARTICIPANTS properties and create a hash table. ${Participants}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${StartDateTime}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Subject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgCreateOrGetUserOnlineMeeting_Create1'; CreateExpanded1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgCreateOrGetUserOnlineMeeting_CreateExpanded1'; CreateViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgCreateOrGetUserOnlineMeeting_CreateViaIdentity1'; CreateViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgCreateOrGetUserOnlineMeeting_CreateViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action decline .Description Invoke action decline .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsYv35ByUsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphDeclinePostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsYv35ByUsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphDeclinePostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [SendResponse <Boolean?>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgdeclineusereventinstance #> function Invoke-MgDeclineUserEventInstance { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='DeclineExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Decline1', Mandatory)] [Parameter(ParameterSetName='DeclineExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Decline1', Mandatory)] [Parameter(ParameterSetName='DeclineExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId1}, [Parameter(ParameterSetName='Decline1', Mandatory)] [Parameter(ParameterSetName='DeclineExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeclineViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='DeclineViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Decline1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='DeclineViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsYv35ByUsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphDeclinePostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='DeclineExpanded1')] [Parameter(ParameterSetName='DeclineViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='DeclineExpanded1')] [Parameter(ParameterSetName='DeclineViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='DeclineExpanded1')] [Parameter(ParameterSetName='DeclineViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SendResponse}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Decline1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgDeclineUserEventInstance_Decline1'; DeclineExpanded1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgDeclineUserEventInstance_DeclineExpanded1'; DeclineViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgDeclineUserEventInstance_DeclineViaIdentity1'; DeclineViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgDeclineUserEventInstance_DeclineViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action decline .Description Invoke action decline .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsT4Hh9DUsersUserIdEventsEventIdMicrosoftGraphDeclinePostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsT4Hh9DUsersUserIdEventsEventIdMicrosoftGraphDeclinePostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [SendResponse <Boolean?>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgdeclineuserevent #> function Invoke-MgDeclineUserEvent { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='DeclineExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Decline', Mandatory)] [Parameter(ParameterSetName='DeclineExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Decline', Mandatory)] [Parameter(ParameterSetName='DeclineExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeclineViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='DeclineViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Decline', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='DeclineViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsT4Hh9DUsersUserIdEventsEventIdMicrosoftGraphDeclinePostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='DeclineExpanded')] [Parameter(ParameterSetName='DeclineViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='DeclineExpanded')] [Parameter(ParameterSetName='DeclineViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='DeclineExpanded')] [Parameter(ParameterSetName='DeclineViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SendResponse}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Decline = 'Microsoft.Graph.Users.Actions.private\Invoke-MgDeclineUserEvent_Decline'; DeclineExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgDeclineUserEvent_DeclineExpanded'; DeclineViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgDeclineUserEvent_DeclineViaIdentity'; DeclineViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgDeclineUserEvent_DeclineViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action dismissReminder .Description Invoke action dismissReminder .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgdismissusereventinstancereminder #> function Invoke-MgDismissUserEventInstanceReminder { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Dismiss1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Dismiss1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Dismiss1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId1}, [Parameter(ParameterSetName='Dismiss1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DismissViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Dismiss1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgDismissUserEventInstanceReminder_Dismiss1'; DismissViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgDismissUserEventInstanceReminder_DismissViaIdentity1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action dismissReminder .Description Invoke action dismissReminder .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgdismissusereventreminder #> function Invoke-MgDismissUserEventReminder { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Dismiss', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Dismiss', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Dismiss', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DismissViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Dismiss = 'Microsoft.Graph.Users.Actions.private\Invoke-MgDismissUserEventReminder_Dismiss'; DismissViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgDismissUserEventReminder_DismissViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action shutDown .Description Invoke action shutDown .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgdownusermanageddeviceshut #> function Invoke-MgDownUserManagedDeviceShut { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Down', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Down', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Down', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DownViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Down = 'Microsoft.Graph.Users.Actions.private\Invoke-MgDownUserManagedDeviceShut_Down'; DownViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgDownUserManagedDeviceShut_DownViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action forward .Description Invoke action forward .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1K9ImduUsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphForwardPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1K9ImduUsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphForwardPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [ToRecipients <IMicrosoftGraphRecipient[]>]: [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user TORECIPIENTS <IMicrosoftGraphRecipient[]>: . [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgforwardusereventinstance #> function Invoke-MgForwardUserEventInstance { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ForwardExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Forward', Mandatory)] [Parameter(ParameterSetName='ForwardExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Forward', Mandatory)] [Parameter(ParameterSetName='ForwardExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId1}, [Parameter(ParameterSetName='Forward', Mandatory)] [Parameter(ParameterSetName='ForwardExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='ForwardViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ForwardViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Forward', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ForwardViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1K9ImduUsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphForwardPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='ForwardExpanded')] [Parameter(ParameterSetName='ForwardViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='ForwardExpanded')] [Parameter(ParameterSetName='ForwardViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='ForwardExpanded')] [Parameter(ParameterSetName='ForwardViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRecipient[]] # . # To construct, see NOTES section for TORECIPIENTS properties and create a hash table. ${ToRecipients}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Forward = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserEventInstance_Forward'; ForwardExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserEventInstance_ForwardExpanded'; ForwardViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserEventInstance_ForwardViaIdentity'; ForwardViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserEventInstance_ForwardViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action forward .Description Invoke action forward .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsPg3HzyUsersUserIdEventsEventIdMicrosoftGraphForwardPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsPg3HzyUsersUserIdEventsEventIdMicrosoftGraphForwardPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [ToRecipients <IMicrosoftGraphRecipient[]>]: [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user TORECIPIENTS <IMicrosoftGraphRecipient[]>: . [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgforwarduserevent #> function Invoke-MgForwardUserEvent { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ForwardExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Forward', Mandatory)] [Parameter(ParameterSetName='ForwardExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Forward', Mandatory)] [Parameter(ParameterSetName='ForwardExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='ForwardViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ForwardViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Forward', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ForwardViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsPg3HzyUsersUserIdEventsEventIdMicrosoftGraphForwardPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='ForwardExpanded')] [Parameter(ParameterSetName='ForwardViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='ForwardExpanded')] [Parameter(ParameterSetName='ForwardViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='ForwardExpanded')] [Parameter(ParameterSetName='ForwardViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRecipient[]] # . # To construct, see NOTES section for TORECIPIENTS properties and create a hash table. ${ToRecipients}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Forward = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserEvent_Forward'; ForwardExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserEvent_ForwardExpanded'; ForwardViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserEvent_ForwardViaIdentity'; ForwardViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserEvent_ForwardViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action forward .Description Invoke action forward .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1X7Dum0UsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphForwardPostRequestbodyContentApplicationJsonSchema1 .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1X7Dum0UsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphForwardPostRequestbodyContentApplicationJsonSchema1>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [Message <IMicrosoftGraphMessage>]: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. [ToRecipients <IMicrosoftGraphRecipient[]>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user MESSAGE <IMicrosoftGraphMessage>: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. TORECIPIENTS <IMicrosoftGraphRecipient[]>: . [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgforwardusermailfoldermessage #> function Invoke-MgForwardUserMailFolderMessage { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ForwardExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Forward', Mandatory)] [Parameter(ParameterSetName='ForwardExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId}, [Parameter(ParameterSetName='Forward', Mandatory)] [Parameter(ParameterSetName='ForwardExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Forward', Mandatory)] [Parameter(ParameterSetName='ForwardExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='ForwardViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ForwardViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Forward', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ForwardViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1X7Dum0UsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphForwardPostRequestbodyContentApplicationJsonSchema1] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='ForwardExpanded')] [Parameter(ParameterSetName='ForwardViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='ForwardExpanded')] [Parameter(ParameterSetName='ForwardViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='ForwardExpanded')] [Parameter(ParameterSetName='ForwardViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage] # message # To construct, see NOTES section for MESSAGE properties and create a hash table. ${Message}, [Parameter(ParameterSetName='ForwardExpanded')] [Parameter(ParameterSetName='ForwardViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRecipient[]] # . # To construct, see NOTES section for TORECIPIENTS properties and create a hash table. ${ToRecipients}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Forward = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserMailFolderMessage_Forward'; ForwardExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserMailFolderMessage_ForwardExpanded'; ForwardViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserMailFolderMessage_ForwardViaIdentity'; ForwardViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserMailFolderMessage_ForwardViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action forward .Description Invoke action forward .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths3Ta6EnUsersUserIdMessagesMessageIdMicrosoftGraphForwardPostRequestbodyContentApplicationJsonSchema1 .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths3Ta6EnUsersUserIdMessagesMessageIdMicrosoftGraphForwardPostRequestbodyContentApplicationJsonSchema1>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [Message <IMicrosoftGraphMessage>]: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. [ToRecipients <IMicrosoftGraphRecipient[]>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user MESSAGE <IMicrosoftGraphMessage>: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. TORECIPIENTS <IMicrosoftGraphRecipient[]>: . [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgforwardusermessage #> function Invoke-MgForwardUserMessage { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ForwardExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Forward', Mandatory)] [Parameter(ParameterSetName='ForwardExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Forward', Mandatory)] [Parameter(ParameterSetName='ForwardExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='ForwardViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ForwardViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Forward', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ForwardViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths3Ta6EnUsersUserIdMessagesMessageIdMicrosoftGraphForwardPostRequestbodyContentApplicationJsonSchema1] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='ForwardExpanded')] [Parameter(ParameterSetName='ForwardViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='ForwardExpanded')] [Parameter(ParameterSetName='ForwardViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='ForwardExpanded')] [Parameter(ParameterSetName='ForwardViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage] # message # To construct, see NOTES section for MESSAGE properties and create a hash table. ${Message}, [Parameter(ParameterSetName='ForwardExpanded')] [Parameter(ParameterSetName='ForwardViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRecipient[]] # . # To construct, see NOTES section for TORECIPIENTS properties and create a hash table. ${ToRecipients}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Forward = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserMessage_Forward'; ForwardExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserMessage_ForwardExpanded'; ForwardViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserMessage_ForwardViaIdentity'; ForwardViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgForwardUserMessage_ForwardViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action reprocessLicenseAssignment .Description Invoke action reprocessLicenseAssignment .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUser .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mglicenseuser #> function Invoke-MgLicenseUser { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUser])] [CmdletBinding(DefaultParameterSetName='License', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='License', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='LicenseViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ License = 'Microsoft.Graph.Users.Actions.private\Invoke-MgLicenseUser_License'; LicenseViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgLicenseUser_LicenseViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action logoutSharedAppleDeviceActiveUser .Description Invoke action logoutSharedAppleDeviceActiveUser .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mglogoutusermanageddevicesharedappledeviceactiveuser #> function Invoke-MgLogoutUserManagedDeviceSharedAppleDeviceActiveUser { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Logout', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Logout', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Logout', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='LogoutViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Logout = 'Microsoft.Graph.Users.Actions.private\Invoke-MgLogoutUserManagedDeviceSharedAppleDeviceActiveUser_Logout'; LogoutViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgLogoutUserManagedDeviceSharedAppleDeviceActiveUser_LogoutViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action replyAll .Description Invoke action replyAll .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths16Mdb34UsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphReplyallPostRequestbodyContentApplicationJsonSchema1 .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths16Mdb34UsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphReplyallPostRequestbodyContentApplicationJsonSchema1>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [Message <IMicrosoftGraphMessage>]: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user MESSAGE <IMicrosoftGraphMessage>: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgreplyallusermailfoldermessage #> function Invoke-MgReplyAllUserMailFolderMessage { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ReplyExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Reply1', Mandatory)] [Parameter(ParameterSetName='ReplyExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId}, [Parameter(ParameterSetName='Reply1', Mandatory)] [Parameter(ParameterSetName='ReplyExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Reply1', Mandatory)] [Parameter(ParameterSetName='ReplyExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='ReplyViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ReplyViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Reply1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ReplyViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths16Mdb34UsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphReplyallPostRequestbodyContentApplicationJsonSchema1] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='ReplyExpanded1')] [Parameter(ParameterSetName='ReplyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='ReplyExpanded1')] [Parameter(ParameterSetName='ReplyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='ReplyExpanded1')] [Parameter(ParameterSetName='ReplyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage] # message # To construct, see NOTES section for MESSAGE properties and create a hash table. ${Message}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Reply1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyAllUserMailFolderMessage_Reply1'; ReplyExpanded1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyAllUserMailFolderMessage_ReplyExpanded1'; ReplyViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyAllUserMailFolderMessage_ReplyViaIdentity1'; ReplyViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyAllUserMailFolderMessage_ReplyViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action replyAll .Description Invoke action replyAll .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsKn6R94UsersUserIdMessagesMessageIdMicrosoftGraphReplyallPostRequestbodyContentApplicationJsonSchema1 .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsKn6R94UsersUserIdMessagesMessageIdMicrosoftGraphReplyallPostRequestbodyContentApplicationJsonSchema1>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [Message <IMicrosoftGraphMessage>]: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user MESSAGE <IMicrosoftGraphMessage>: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgreplyallusermessage #> function Invoke-MgReplyAllUserMessage { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ReplyExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Reply1', Mandatory)] [Parameter(ParameterSetName='ReplyExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Reply1', Mandatory)] [Parameter(ParameterSetName='ReplyExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='ReplyViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ReplyViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Reply1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ReplyViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsKn6R94UsersUserIdMessagesMessageIdMicrosoftGraphReplyallPostRequestbodyContentApplicationJsonSchema1] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='ReplyExpanded1')] [Parameter(ParameterSetName='ReplyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='ReplyExpanded1')] [Parameter(ParameterSetName='ReplyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='ReplyExpanded1')] [Parameter(ParameterSetName='ReplyViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage] # message # To construct, see NOTES section for MESSAGE properties and create a hash table. ${Message}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Reply1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyAllUserMessage_Reply1'; ReplyExpanded1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyAllUserMessage_ReplyExpanded1'; ReplyViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyAllUserMessage_ReplyViaIdentity1'; ReplyViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyAllUserMessage_ReplyViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action reply .Description Invoke action reply .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths6Zjq1HUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphReplyPostRequestbodyContentApplicationJsonSchema1 .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths6Zjq1HUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphReplyPostRequestbodyContentApplicationJsonSchema1>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [Message <IMicrosoftGraphMessage>]: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user MESSAGE <IMicrosoftGraphMessage>: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgreplyusermailfoldermessage #> function Invoke-MgReplyUserMailFolderMessage { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ReplyExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Reply', Mandatory)] [Parameter(ParameterSetName='ReplyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId}, [Parameter(ParameterSetName='Reply', Mandatory)] [Parameter(ParameterSetName='ReplyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Reply', Mandatory)] [Parameter(ParameterSetName='ReplyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='ReplyViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ReplyViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Reply', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ReplyViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths6Zjq1HUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphReplyPostRequestbodyContentApplicationJsonSchema1] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='ReplyExpanded')] [Parameter(ParameterSetName='ReplyViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='ReplyExpanded')] [Parameter(ParameterSetName='ReplyViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='ReplyExpanded')] [Parameter(ParameterSetName='ReplyViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage] # message # To construct, see NOTES section for MESSAGE properties and create a hash table. ${Message}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Reply = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyUserMailFolderMessage_Reply'; ReplyExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyUserMailFolderMessage_ReplyExpanded'; ReplyViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyUserMailFolderMessage_ReplyViaIdentity'; ReplyViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyUserMailFolderMessage_ReplyViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action reply .Description Invoke action reply .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1Inq4EUsersUserIdMessagesMessageIdMicrosoftGraphReplyPostRequestbodyContentApplicationJsonSchema1 .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1Inq4EUsersUserIdMessagesMessageIdMicrosoftGraphReplyPostRequestbodyContentApplicationJsonSchema1>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [Message <IMicrosoftGraphMessage>]: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user MESSAGE <IMicrosoftGraphMessage>: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgreplyusermessage #> function Invoke-MgReplyUserMessage { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ReplyExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Reply', Mandatory)] [Parameter(ParameterSetName='ReplyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Reply', Mandatory)] [Parameter(ParameterSetName='ReplyExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='ReplyViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ReplyViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Reply', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ReplyViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1Inq4EUsersUserIdMessagesMessageIdMicrosoftGraphReplyPostRequestbodyContentApplicationJsonSchema1] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='ReplyExpanded')] [Parameter(ParameterSetName='ReplyViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='ReplyExpanded')] [Parameter(ParameterSetName='ReplyViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='ReplyExpanded')] [Parameter(ParameterSetName='ReplyViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage] # message # To construct, see NOTES section for MESSAGE properties and create a hash table. ${Message}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Reply = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyUserMessage_Reply'; ReplyExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyUserMessage_ReplyExpanded'; ReplyViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyUserMessage_ReplyViaIdentity'; ReplyViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgReplyUserMessage_ReplyViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action retire .Description Invoke action retire .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgretireusermanageddevice #> function Invoke-MgRetireUserManagedDevice { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Retire', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Retire', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Retire', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='RetireViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Retire = 'Microsoft.Graph.Users.Actions.private\Invoke-MgRetireUserManagedDevice_Retire'; RetireViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgRetireUserManagedDevice_RetireViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action windowsDefenderScan .Description Invoke action windowsDefenderScan .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1FegpkwUsersUserIdManageddevicesManageddeviceIdMicrosoftGraphWindowsdefenderscanPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1FegpkwUsersUserIdManageddevicesManageddeviceIdMicrosoftGraphWindowsdefenderscanPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [QuickScan <Boolean?>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgscanusermanageddevicewindowdefender #> function Invoke-MgScanUserManagedDeviceWindowDefender { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ScanExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Scan', Mandatory)] [Parameter(ParameterSetName='ScanExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Scan', Mandatory)] [Parameter(ParameterSetName='ScanExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='ScanViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ScanViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Scan', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ScanViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1FegpkwUsersUserIdManageddevicesManageddeviceIdMicrosoftGraphWindowsdefenderscanPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='ScanExpanded')] [Parameter(ParameterSetName='ScanViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='ScanExpanded')] [Parameter(ParameterSetName='ScanViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${QuickScan}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Scan = 'Microsoft.Graph.Users.Actions.private\Invoke-MgScanUserManagedDeviceWindowDefender_Scan'; ScanExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgScanUserManagedDeviceWindowDefender_ScanExpanded'; ScanViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgScanUserManagedDeviceWindowDefender_ScanViaIdentity'; ScanViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgScanUserManagedDeviceWindowDefender_ScanViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action snoozeReminder .Description Invoke action snoozeReminder .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths42Qvm9UsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphSnoozereminderPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths42Qvm9UsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphSnoozereminderPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [NewReminderTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user NEWREMINDERTIME <IMicrosoftGraphDateTimeZone>: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgsnoozeusereventinstancereminder #> function Invoke-MgSnoozeUserEventInstanceReminder { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='SnoozeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Snooze', Mandatory)] [Parameter(ParameterSetName='SnoozeExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Snooze', Mandatory)] [Parameter(ParameterSetName='SnoozeExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId1}, [Parameter(ParameterSetName='Snooze', Mandatory)] [Parameter(ParameterSetName='SnoozeExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='SnoozeViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='SnoozeViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Snooze', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='SnoozeViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths42Qvm9UsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphSnoozereminderPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='SnoozeExpanded')] [Parameter(ParameterSetName='SnoozeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='SnoozeExpanded')] [Parameter(ParameterSetName='SnoozeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphDateTimeZone] # dateTimeTimeZone # To construct, see NOTES section for NEWREMINDERTIME properties and create a hash table. ${NewReminderTime}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Snooze = 'Microsoft.Graph.Users.Actions.private\Invoke-MgSnoozeUserEventInstanceReminder_Snooze'; SnoozeExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgSnoozeUserEventInstanceReminder_SnoozeExpanded'; SnoozeViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgSnoozeUserEventInstanceReminder_SnoozeViaIdentity'; SnoozeViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgSnoozeUserEventInstanceReminder_SnoozeViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action snoozeReminder .Description Invoke action snoozeReminder .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths10X81JrUsersUserIdEventsEventIdMicrosoftGraphSnoozereminderPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths10X81JrUsersUserIdEventsEventIdMicrosoftGraphSnoozereminderPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [NewReminderTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user NEWREMINDERTIME <IMicrosoftGraphDateTimeZone>: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgsnoozeusereventreminder #> function Invoke-MgSnoozeUserEventReminder { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='SnoozeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Snooze', Mandatory)] [Parameter(ParameterSetName='SnoozeExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Snooze', Mandatory)] [Parameter(ParameterSetName='SnoozeExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='SnoozeViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='SnoozeViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Snooze', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='SnoozeViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths10X81JrUsersUserIdEventsEventIdMicrosoftGraphSnoozereminderPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='SnoozeExpanded')] [Parameter(ParameterSetName='SnoozeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='SnoozeExpanded')] [Parameter(ParameterSetName='SnoozeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphDateTimeZone] # dateTimeTimeZone # To construct, see NOTES section for NEWREMINDERTIME properties and create a hash table. ${NewReminderTime}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Snooze = 'Microsoft.Graph.Users.Actions.private\Invoke-MgSnoozeUserEventReminder_Snooze'; SnoozeExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgSnoozeUserEventReminder_SnoozeExpanded'; SnoozeViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgSnoozeUserEventReminder_SnoozeViaIdentity'; SnoozeViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgSnoozeUserEventReminder_SnoozeViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action translateExchangeIds .Description Invoke action translateExchangeIds .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsHqegrcUsersUserIdMicrosoftGraphTranslateexchangeidsPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphConvertIdResult .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsHqegrcUsersUserIdMicrosoftGraphTranslateexchangeidsPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [InputIds <String[]>]: [SourceIdType <String>]: exchangeIdFormat [TargetIdType <String>]: exchangeIdFormat INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/invoke-mgtranslateuserexchangeid #> function Invoke-MgTranslateUserExchangeId { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphConvertIdResult])] [CmdletBinding(DefaultParameterSetName='TranslateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Translate', Mandatory)] [Parameter(ParameterSetName='TranslateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='TranslateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='TranslateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Translate', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='TranslateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsHqegrcUsersUserIdMicrosoftGraphTranslateexchangeidsPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='TranslateExpanded')] [Parameter(ParameterSetName='TranslateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='TranslateExpanded')] [Parameter(ParameterSetName='TranslateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${InputIds}, [Parameter(ParameterSetName='TranslateExpanded')] [Parameter(ParameterSetName='TranslateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # exchangeIdFormat ${SourceIdType}, [Parameter(ParameterSetName='TranslateExpanded')] [Parameter(ParameterSetName='TranslateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # exchangeIdFormat ${TargetIdType}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Translate = 'Microsoft.Graph.Users.Actions.private\Invoke-MgTranslateUserExchangeId_Translate'; TranslateExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgTranslateUserExchangeId_TranslateExpanded'; TranslateViaIdentity = 'Microsoft.Graph.Users.Actions.private\Invoke-MgTranslateUserExchangeId_TranslateViaIdentity'; TranslateViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Invoke-MgTranslateUserExchangeId_TranslateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action remoteLock .Description Invoke action remoteLock .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/lock-mgusermanageddeviceremote #> function Lock-MgUserManagedDeviceRemote { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Lock', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Lock', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Lock', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='LockViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Lock = 'Microsoft.Graph.Users.Actions.private\Lock-MgUserManagedDeviceRemote_Lock'; LockViaIdentity = 'Microsoft.Graph.Users.Actions.private\Lock-MgUserManagedDeviceRemote_LockViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action move .Description Invoke action move .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1Ekxa5VUsersUserIdMailfoldersMailfolderIdChildfoldersMailfolderId1MicrosoftGraphMovePostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMailFolder .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1Ekxa5VUsersUserIdMailfoldersMailfolderIdChildfoldersMailfolderId1MicrosoftGraphMovePostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [DestinationId <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/move-mgusermailfolderchildfolder #> function Move-MgUserMailFolderChildFolder { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMailFolder])] [CmdletBinding(DefaultParameterSetName='MoveExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Move', Mandatory)] [Parameter(ParameterSetName='MoveExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId}, [Parameter(ParameterSetName='Move', Mandatory)] [Parameter(ParameterSetName='MoveExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId1}, [Parameter(ParameterSetName='Move', Mandatory)] [Parameter(ParameterSetName='MoveExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='MoveViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='MoveViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Move', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='MoveViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1Ekxa5VUsersUserIdMailfoldersMailfolderIdChildfoldersMailfolderId1MicrosoftGraphMovePostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='MoveExpanded')] [Parameter(ParameterSetName='MoveViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='MoveExpanded')] [Parameter(ParameterSetName='MoveViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DestinationId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Move = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMailFolderChildFolder_Move'; MoveExpanded = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMailFolderChildFolder_MoveExpanded'; MoveViaIdentity = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMailFolderChildFolder_MoveViaIdentity'; MoveViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMailFolderChildFolder_MoveViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action move .Description Invoke action move .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1Ph8596UsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphMovePostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1Ph8596UsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphMovePostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [DestinationId <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/move-mgusermailfoldermessage #> function Move-MgUserMailFolderMessage { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage])] [CmdletBinding(DefaultParameterSetName='MoveExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Move', Mandatory)] [Parameter(ParameterSetName='MoveExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId}, [Parameter(ParameterSetName='Move', Mandatory)] [Parameter(ParameterSetName='MoveExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Move', Mandatory)] [Parameter(ParameterSetName='MoveExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='MoveViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='MoveViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Move', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='MoveViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1Ph8596UsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphMovePostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='MoveExpanded')] [Parameter(ParameterSetName='MoveViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='MoveExpanded')] [Parameter(ParameterSetName='MoveViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DestinationId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Move = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMailFolderMessage_Move'; MoveExpanded = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMailFolderMessage_MoveExpanded'; MoveViaIdentity = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMailFolderMessage_MoveViaIdentity'; MoveViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMailFolderMessage_MoveViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action move .Description Invoke action move .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1Adv2SrUsersUserIdMailfoldersMailfolderIdMicrosoftGraphMovePostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMailFolder .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1Adv2SrUsersUserIdMailfoldersMailfolderIdMicrosoftGraphMovePostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [DestinationId <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/move-mgusermailfolder #> function Move-MgUserMailFolder { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMailFolder])] [CmdletBinding(DefaultParameterSetName='MoveExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Move', Mandatory)] [Parameter(ParameterSetName='MoveExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId}, [Parameter(ParameterSetName='Move', Mandatory)] [Parameter(ParameterSetName='MoveExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='MoveViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='MoveViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Move', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='MoveViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1Adv2SrUsersUserIdMailfoldersMailfolderIdMicrosoftGraphMovePostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='MoveExpanded')] [Parameter(ParameterSetName='MoveViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='MoveExpanded')] [Parameter(ParameterSetName='MoveViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DestinationId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Move = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMailFolder_Move'; MoveExpanded = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMailFolder_MoveExpanded'; MoveViaIdentity = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMailFolder_MoveViaIdentity'; MoveViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMailFolder_MoveViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action move .Description Invoke action move .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths46T88QUsersUserIdMessagesMessageIdMicrosoftGraphMovePostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths46T88QUsersUserIdMessagesMessageIdMicrosoftGraphMovePostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [DestinationId <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/move-mgusermessage #> function Move-MgUserMessage { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage])] [CmdletBinding(DefaultParameterSetName='MoveExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Move', Mandatory)] [Parameter(ParameterSetName='MoveExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Move', Mandatory)] [Parameter(ParameterSetName='MoveExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='MoveViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='MoveViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Move', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='MoveViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths46T88QUsersUserIdMessagesMessageIdMicrosoftGraphMovePostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='MoveExpanded')] [Parameter(ParameterSetName='MoveViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='MoveExpanded')] [Parameter(ParameterSetName='MoveViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DestinationId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Move = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMessage_Move'; MoveExpanded = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMessage_MoveExpanded'; MoveViaIdentity = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMessage_MoveViaIdentity'; MoveViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Move-MgUserMessage_MoveViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action createUploadSession .Description Invoke action createUploadSession .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1Ly1W91UsersUserIdEventsEventIdAttachmentsMicrosoftGraphCreateuploadsessionPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUploadSession .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. ATTACHMENTITEM <IMicrosoftGraphAttachmentItem>: attachmentItem [(Any) <Object>]: This indicates any property can be added to this object. [AttachmentType <String>]: attachmentType [ContentType <String>]: The nature of the data in the attachment. Optional. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. Optional. [Name <String>]: The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. [Size <Int64?>]: The length of the attachment in bytes. Required. BODYPARAMETER <IPaths1Ly1W91UsersUserIdEventsEventIdAttachmentsMicrosoftGraphCreateuploadsessionPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [AttachmentItem <IMicrosoftGraphAttachmentItem>]: attachmentItem [(Any) <Object>]: This indicates any property can be added to this object. [AttachmentType <String>]: attachmentType [ContentType <String>]: The nature of the data in the attachment. Optional. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. Optional. [Name <String>]: The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. [Size <Int64?>]: The length of the attachment in bytes. Required. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/new-mgusereventattachmentuploadsession #> function New-MgUserEventAttachmentUploadSession { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUploadSession])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1Ly1W91UsersUserIdEventsEventIdAttachmentsMicrosoftGraphCreateuploadsessionPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAttachmentItem] # attachmentItem # To construct, see NOTES section for ATTACHMENTITEM properties and create a hash table. ${AttachmentItem}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.Users.Actions.private\New-MgUserEventAttachmentUploadSession_Create'; CreateExpanded = 'Microsoft.Graph.Users.Actions.private\New-MgUserEventAttachmentUploadSession_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.Users.Actions.private\New-MgUserEventAttachmentUploadSession_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\New-MgUserEventAttachmentUploadSession_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action createUploadSession .Description Invoke action createUploadSession .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1C7XgoqUsersUserIdMailfoldersMailfolderIdMessagesMessageIdAttachmentsMicrosoftGraphCreateuploadsessionPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUploadSession .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. ATTACHMENTITEM <IMicrosoftGraphAttachmentItem>: attachmentItem [(Any) <Object>]: This indicates any property can be added to this object. [AttachmentType <String>]: attachmentType [ContentType <String>]: The nature of the data in the attachment. Optional. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. Optional. [Name <String>]: The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. [Size <Int64?>]: The length of the attachment in bytes. Required. BODYPARAMETER <IPaths1C7XgoqUsersUserIdMailfoldersMailfolderIdMessagesMessageIdAttachmentsMicrosoftGraphCreateuploadsessionPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [AttachmentItem <IMicrosoftGraphAttachmentItem>]: attachmentItem [(Any) <Object>]: This indicates any property can be added to this object. [AttachmentType <String>]: attachmentType [ContentType <String>]: The nature of the data in the attachment. Optional. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. Optional. [Name <String>]: The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. [Size <Int64?>]: The length of the attachment in bytes. Required. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/new-mgusermailfoldermessageattachmentuploadsession #> function New-MgUserMailFolderMessageAttachmentUploadSession { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUploadSession])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1C7XgoqUsersUserIdMailfoldersMailfolderIdMessagesMessageIdAttachmentsMicrosoftGraphCreateuploadsessionPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAttachmentItem] # attachmentItem # To construct, see NOTES section for ATTACHMENTITEM properties and create a hash table. ${AttachmentItem}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageAttachmentUploadSession_Create'; CreateExpanded = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageAttachmentUploadSession_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageAttachmentUploadSession_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageAttachmentUploadSession_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action createForward .Description Invoke action createForward .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths29L6IuUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphCreateforwardPostRequestbodyContentApplicationJsonSchema1 .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths29L6IuUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphCreateforwardPostRequestbodyContentApplicationJsonSchema1>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [Message <IMicrosoftGraphMessage>]: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. [ToRecipients <IMicrosoftGraphRecipient[]>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user MESSAGE <IMicrosoftGraphMessage>: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. TORECIPIENTS <IMicrosoftGraphRecipient[]>: . [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/new-mgusermailfoldermessageforward #> function New-MgUserMailFolderMessageForward { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths29L6IuUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphCreateforwardPostRequestbodyContentApplicationJsonSchema1] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage] # message # To construct, see NOTES section for MESSAGE properties and create a hash table. ${Message}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRecipient[]] # . # To construct, see NOTES section for TORECIPIENTS properties and create a hash table. ${ToRecipients}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageForward_Create'; CreateExpanded = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageForward_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageForward_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageForward_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action createReplyAll .Description Invoke action createReplyAll .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths3M6QbmUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphCreatereplyallPostRequestbodyContentApplicationJsonSchema1 .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths3M6QbmUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphCreatereplyallPostRequestbodyContentApplicationJsonSchema1>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [Message <IMicrosoftGraphMessage>]: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user MESSAGE <IMicrosoftGraphMessage>: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/new-mgusermailfoldermessagereplyall #> function New-MgUserMailFolderMessageReplyAll { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage])] [CmdletBinding(DefaultParameterSetName='CreateExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Create1', Mandatory)] [Parameter(ParameterSetName='CreateExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId}, [Parameter(ParameterSetName='Create1', Mandatory)] [Parameter(ParameterSetName='CreateExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Create1', Mandatory)] [Parameter(ParameterSetName='CreateExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths3M6QbmUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphCreatereplyallPostRequestbodyContentApplicationJsonSchema1] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage] # message # To construct, see NOTES section for MESSAGE properties and create a hash table. ${Message}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create1 = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageReplyAll_Create1'; CreateExpanded1 = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageReplyAll_CreateExpanded1'; CreateViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageReplyAll_CreateViaIdentity1'; CreateViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageReplyAll_CreateViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action createReply .Description Invoke action createReply .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsGpd5XxUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphCreatereplyPostRequestbodyContentApplicationJsonSchema1 .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsGpd5XxUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphCreatereplyPostRequestbodyContentApplicationJsonSchema1>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [Message <IMicrosoftGraphMessage>]: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user MESSAGE <IMicrosoftGraphMessage>: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/new-mgusermailfoldermessagereply #> function New-MgUserMailFolderMessageReply { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsGpd5XxUsersUserIdMailfoldersMailfolderIdMessagesMessageIdMicrosoftGraphCreatereplyPostRequestbodyContentApplicationJsonSchema1] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage] # message # To construct, see NOTES section for MESSAGE properties and create a hash table. ${Message}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageReply_Create'; CreateExpanded = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageReply_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageReply_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\New-MgUserMailFolderMessageReply_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action windowsDefenderUpdateSignatures .Description Invoke action windowsDefenderUpdateSignatures .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/new-mgusermanageddevicewindowsdefenderupdatesignature #> function New-MgUserManagedDeviceWindowsDefenderUpdateSignature { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Update', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Update', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.Users.Actions.private\New-MgUserManagedDeviceWindowsDefenderUpdateSignature_Update'; UpdateViaIdentity = 'Microsoft.Graph.Users.Actions.private\New-MgUserManagedDeviceWindowsDefenderUpdateSignature_UpdateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action createUploadSession .Description Invoke action createUploadSession .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1C56La0UsersUserIdMessagesMessageIdAttachmentsMicrosoftGraphCreateuploadsessionPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUploadSession .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. ATTACHMENTITEM <IMicrosoftGraphAttachmentItem>: attachmentItem [(Any) <Object>]: This indicates any property can be added to this object. [AttachmentType <String>]: attachmentType [ContentType <String>]: The nature of the data in the attachment. Optional. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. Optional. [Name <String>]: The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. [Size <Int64?>]: The length of the attachment in bytes. Required. BODYPARAMETER <IPaths1C56La0UsersUserIdMessagesMessageIdAttachmentsMicrosoftGraphCreateuploadsessionPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [AttachmentItem <IMicrosoftGraphAttachmentItem>]: attachmentItem [(Any) <Object>]: This indicates any property can be added to this object. [AttachmentType <String>]: attachmentType [ContentType <String>]: The nature of the data in the attachment. Optional. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. Optional. [Name <String>]: The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. [Size <Int64?>]: The length of the attachment in bytes. Required. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/new-mgusermessageattachmentuploadsession #> function New-MgUserMessageAttachmentUploadSession { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUploadSession])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1C56La0UsersUserIdMessagesMessageIdAttachmentsMicrosoftGraphCreateuploadsessionPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAttachmentItem] # attachmentItem # To construct, see NOTES section for ATTACHMENTITEM properties and create a hash table. ${AttachmentItem}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageAttachmentUploadSession_Create'; CreateExpanded = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageAttachmentUploadSession_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageAttachmentUploadSession_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageAttachmentUploadSession_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action createForward .Description Invoke action createForward .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths16W4HmtUsersUserIdMessagesMessageIdMicrosoftGraphCreateforwardPostRequestbodyContentApplicationJsonSchema1 .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths16W4HmtUsersUserIdMessagesMessageIdMicrosoftGraphCreateforwardPostRequestbodyContentApplicationJsonSchema1>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [Message <IMicrosoftGraphMessage>]: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. [ToRecipients <IMicrosoftGraphRecipient[]>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user MESSAGE <IMicrosoftGraphMessage>: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. TORECIPIENTS <IMicrosoftGraphRecipient[]>: . [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/new-mgusermessageforward #> function New-MgUserMessageForward { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths16W4HmtUsersUserIdMessagesMessageIdMicrosoftGraphCreateforwardPostRequestbodyContentApplicationJsonSchema1] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage] # message # To construct, see NOTES section for MESSAGE properties and create a hash table. ${Message}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRecipient[]] # . # To construct, see NOTES section for TORECIPIENTS properties and create a hash table. ${ToRecipients}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageForward_Create'; CreateExpanded = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageForward_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageForward_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageForward_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action createReplyAll .Description Invoke action createReplyAll .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths140I0IcUsersUserIdMessagesMessageIdMicrosoftGraphCreatereplyallPostRequestbodyContentApplicationJsonSchema1 .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths140I0IcUsersUserIdMessagesMessageIdMicrosoftGraphCreatereplyallPostRequestbodyContentApplicationJsonSchema1>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [Message <IMicrosoftGraphMessage>]: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user MESSAGE <IMicrosoftGraphMessage>: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/new-mgusermessagereplyall #> function New-MgUserMessageReplyAll { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage])] [CmdletBinding(DefaultParameterSetName='CreateExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Create1', Mandatory)] [Parameter(ParameterSetName='CreateExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Create1', Mandatory)] [Parameter(ParameterSetName='CreateExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths140I0IcUsersUserIdMessagesMessageIdMicrosoftGraphCreatereplyallPostRequestbodyContentApplicationJsonSchema1] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage] # message # To construct, see NOTES section for MESSAGE properties and create a hash table. ${Message}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create1 = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageReplyAll_Create1'; CreateExpanded1 = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageReplyAll_CreateExpanded1'; CreateViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageReplyAll_CreateViaIdentity1'; CreateViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageReplyAll_CreateViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action createReply .Description Invoke action createReply .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1BibiieUsersUserIdMessagesMessageIdMicrosoftGraphCreatereplyPostRequestbodyContentApplicationJsonSchema1 .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1BibiieUsersUserIdMessagesMessageIdMicrosoftGraphCreatereplyPostRequestbodyContentApplicationJsonSchema1>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: [Message <IMicrosoftGraphMessage>]: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user MESSAGE <IMicrosoftGraphMessage>: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/new-mgusermessagereply #> function New-MgUserMessageReply { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1BibiieUsersUserIdMessagesMessageIdMicrosoftGraphCreatereplyPostRequestbodyContentApplicationJsonSchema1] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage] # message # To construct, see NOTES section for MESSAGE properties and create a hash table. ${Message}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageReply_Create'; CreateExpanded = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageReply_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageReply_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\New-MgUserMessageReply_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action removeAllDevicesFromManagement .Description Invoke action removeAllDevicesFromManagement .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/remove-mguserdevicefrommanagement #> function Remove-MgUserDeviceFromManagement { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Remove', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Remove', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='RemoveViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Remove = 'Microsoft.Graph.Users.Actions.private\Remove-MgUserDeviceFromManagement_Remove'; RemoveViaIdentity = 'Microsoft.Graph.Users.Actions.private\Remove-MgUserDeviceFromManagement_RemoveViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action deleteUserFromSharedAppleDevice .Description Invoke action deleteUserFromSharedAppleDevice .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsWbtl2JUsersUserIdManageddevicesManageddeviceIdMicrosoftGraphDeleteuserfromsharedappledevicePostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsWbtl2JUsersUserIdManageddevicesManageddeviceIdMicrosoftGraphDeleteuserfromsharedappledevicePostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [UserPrincipalName <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/remove-mgusermanageddeviceuserfromsharedappledevice #> function Remove-MgUserManagedDeviceUserFromSharedAppleDevice { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='DeleteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Parameter(ParameterSetName='DeleteExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Parameter(ParameterSetName='DeleteExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='DeleteViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Delete', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsWbtl2JUsersUserIdManageddevicesManageddeviceIdMicrosoftGraphDeleteuserfromsharedappledevicePostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='DeleteExpanded')] [Parameter(ParameterSetName='DeleteViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='DeleteExpanded')] [Parameter(ParameterSetName='DeleteViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserPrincipalName}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.Users.Actions.private\Remove-MgUserManagedDeviceUserFromSharedAppleDevice_Delete'; DeleteExpanded = 'Microsoft.Graph.Users.Actions.private\Remove-MgUserManagedDeviceUserFromSharedAppleDevice_DeleteExpanded'; DeleteViaIdentity = 'Microsoft.Graph.Users.Actions.private\Remove-MgUserManagedDeviceUserFromSharedAppleDevice_DeleteViaIdentity'; DeleteViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Remove-MgUserManagedDeviceUserFromSharedAppleDevice_DeleteViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action requestRemoteAssistance .Description Invoke action requestRemoteAssistance .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/request-mgusermanageddeviceremoteassistance #> function Request-MgUserManagedDeviceRemoteAssistance { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Request', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Request', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Request', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='RequestViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Request = 'Microsoft.Graph.Users.Actions.private\Request-MgUserManagedDeviceRemoteAssistance_Request'; RequestViaIdentity = 'Microsoft.Graph.Users.Actions.private\Request-MgUserManagedDeviceRemoteAssistance_RequestViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action resetPasscode .Description Invoke action resetPasscode .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/reset-mgusermanageddevicepasscode #> function Reset-MgUserManagedDevicePasscode { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Reset', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Reset', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Reset', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='ResetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Reset = 'Microsoft.Graph.Users.Actions.private\Reset-MgUserManagedDevicePasscode_Reset'; ResetViaIdentity = 'Microsoft.Graph.Users.Actions.private\Reset-MgUserManagedDevicePasscode_ResetViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action changePassword .Description Invoke action changePassword .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths3Mx0JpUsersUserIdMicrosoftGraphChangepasswordPostRequestbodyContentApplicationJsonSchema1 .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths3Mx0JpUsersUserIdMicrosoftGraphChangepasswordPostRequestbodyContentApplicationJsonSchema1>: . [(Any) <Object>]: This indicates any property can be added to this object. [CurrentPassword <String>]: [NewPassword <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/reset-mguserpassword #> function Reset-MgUserPassword { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ChangeExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Change', Mandatory)] [Parameter(ParameterSetName='ChangeExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='ChangeViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ChangeViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Change', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ChangeViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths3Mx0JpUsersUserIdMicrosoftGraphChangepasswordPostRequestbodyContentApplicationJsonSchema1] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='ChangeExpanded')] [Parameter(ParameterSetName='ChangeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='ChangeExpanded')] [Parameter(ParameterSetName='ChangeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${CurrentPassword}, [Parameter(ParameterSetName='ChangeExpanded')] [Parameter(ParameterSetName='ChangeViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${NewPassword}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Change = 'Microsoft.Graph.Users.Actions.private\Reset-MgUserPassword_Change'; ChangeExpanded = 'Microsoft.Graph.Users.Actions.private\Reset-MgUserPassword_ChangeExpanded'; ChangeViaIdentity = 'Microsoft.Graph.Users.Actions.private\Reset-MgUserPassword_ChangeViaIdentity'; ChangeViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Reset-MgUserPassword_ChangeViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action rebootNow .Description Invoke action rebootNow .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/restart-mgusermanageddevicenow #> function Restart-MgUserManagedDeviceNow { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Reboot', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Reboot', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Reboot', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='RebootViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Reboot = 'Microsoft.Graph.Users.Actions.private\Restart-MgUserManagedDeviceNow_Reboot'; RebootViaIdentity = 'Microsoft.Graph.Users.Actions.private\Restart-MgUserManagedDeviceNow_RebootViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action recoverPasscode .Description Invoke action recoverPasscode .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/restore-mgusermanageddevicepasscode #> function Restore-MgUserManagedDevicePasscode { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Recover', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Recover', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Recover', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='RecoverViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Recover = 'Microsoft.Graph.Users.Actions.private\Restore-MgUserManagedDevicePasscode_Recover'; RecoverViaIdentity = 'Microsoft.Graph.Users.Actions.private\Restore-MgUserManagedDevicePasscode_RecoverViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action restore .Description Invoke action restore .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphDirectoryObject .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/restore-mguser #> function Restore-MgUser { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphDirectoryObject])] [CmdletBinding(DefaultParameterSetName='Restore', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Restore', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='RestoreViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Restore = 'Microsoft.Graph.Users.Actions.private\Restore-MgUser_Restore'; RestoreViaIdentity = 'Microsoft.Graph.Users.Actions.private\Restore-MgUser_RestoreViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action revokeSignInSessions .Description Invoke action revokeSignInSessions .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/revoke-mgusersign #> function Revoke-MgUserSign { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Revoke', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Revoke', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='RevokeViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Revoke = 'Microsoft.Graph.Users.Actions.private\Revoke-MgUserSign_Revoke'; RevokeViaIdentity = 'Microsoft.Graph.Users.Actions.private\Revoke-MgUserSign_RevokeViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action send .Description Invoke action send .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/send-mgusermailfoldermessage #> function Send-MgUserMailFolderMessage { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Send', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Send', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of mailFolder ${MailFolderId}, [Parameter(ParameterSetName='Send', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Send', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='SendViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Send = 'Microsoft.Graph.Users.Actions.private\Send-MgUserMailFolderMessage_Send'; SendViaIdentity = 'Microsoft.Graph.Users.Actions.private\Send-MgUserMailFolderMessage_SendViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action sendMail .Description Invoke action sendMail .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsFh5OjtUsersUserIdMicrosoftGraphSendmailPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPathsFh5OjtUsersUserIdMicrosoftGraphSendmailPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Message <IMicrosoftGraphMessage>]: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. [SaveToSentItems <Boolean?>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user MESSAGE <IMicrosoftGraphMessage>: message [(Any) <Object>]: This indicates any property can be added to this object. [Categories <String[]>]: The categories associated with the item [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Id <String>]: Read-only. [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message. [Id <String>]: Read-only. [ContentType <String>]: The MIME type. [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false. [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' [Name <String>]: The display name of the attachment. This does not need to be the actual file name. [Size <Int32?>]: The length of the attachment in bytes. [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message. [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress [(Any) <Object>]: This indicates any property can be added to this object. [Address <String>]: The email address of an entity instance. [Name <String>]: The display name of an entity instance. [Body <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [BodyPreview <String>]: The first 255 characters of the message body. It is in text format. If the message contains instances of mention, this property would contain a concatenation of these mentions as well. [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message. [ConversationId <String>]: The ID of the conversation the email belongs to. [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation. [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable. [Id <String>]: Read-only. [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag [(Any) <Object>]: This indicates any property can be added to this object. [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [(Any) <Object>]: This indicates any property can be added to this object. [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [FlagStatus <String>]: followupFlagStatus [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone [From <IMicrosoftGraphRecipient>]: recipient [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. [Importance <String>]: importance [InferenceClassification <String>]: inferenceClassificationType [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. [Name <String>]: Represents the key in a key-value pair. [Value <String>]: The value in a key-value pair. [InternetMessageId <String>]: The message ID in the format specified by RFC2822. [IsDeliveryReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [IsDraft <Boolean?>]: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. [IsRead <Boolean?>]: Indicates whether the message has been read. [IsReadReceiptRequested <Boolean?>]: Indicates whether a read receipt is requested for the message. [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String[]>]: A collection of property values. [ParentFolderId <String>]: The unique identifier for the message's parent mailFolder. [ReceivedDateTime <DateTime?>]: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [ReplyTo <IMicrosoftGraphRecipient[]>]: The email addresses to use when replying. [Sender <IMicrosoftGraphRecipient>]: recipient [SentDateTime <DateTime?>]: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable. [Id <String>]: Read-only. [Value <String>]: A property value. [Subject <String>]: The subject of the message. [ToRecipients <IMicrosoftGraphRecipient[]>]: The To: recipients for the message. [UniqueBody <IMicrosoftGraphItemBody>]: itemBody [WebLink <String>]: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame. .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/send-mgusermail #> function Send-MgUserMail { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='SendExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Send', Mandatory)] [Parameter(ParameterSetName='SendExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='SendViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='SendViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Send', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='SendViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsFh5OjtUsersUserIdMicrosoftGraphSendmailPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='SendExpanded')] [Parameter(ParameterSetName='SendViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='SendExpanded')] [Parameter(ParameterSetName='SendViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage] # message # To construct, see NOTES section for MESSAGE properties and create a hash table. ${Message}, [Parameter(ParameterSetName='SendExpanded')] [Parameter(ParameterSetName='SendViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SaveToSentItems}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Send = 'Microsoft.Graph.Users.Actions.private\Send-MgUserMail_Send'; SendExpanded = 'Microsoft.Graph.Users.Actions.private\Send-MgUserMail_SendExpanded'; SendViaIdentity = 'Microsoft.Graph.Users.Actions.private\Send-MgUserMail_SendViaIdentity'; SendViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Send-MgUserMail_SendViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action send .Description Invoke action send .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/send-mgusermessage #> function Send-MgUserMessage { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Send', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Send', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of message ${MessageId}, [Parameter(ParameterSetName='Send', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='SendViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Send = 'Microsoft.Graph.Users.Actions.private\Send-MgUserMessage_Send'; SendViaIdentity = 'Microsoft.Graph.Users.Actions.private\Send-MgUserMessage_SendViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action assignLicense .Description Invoke action assignLicense .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPathsBfhtneUsersUserIdMicrosoftGraphAssignlicensePostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUser .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. ADDLICENSES <IMicrosoftGraphAssignedLicense[]>: . [DisabledPlans <String[]>]: A collection of the unique identifiers for plans that have been disabled. [SkuId <String>]: The unique identifier for the SKU. BODYPARAMETER <IPathsBfhtneUsersUserIdMicrosoftGraphAssignlicensePostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [AddLicenses <IMicrosoftGraphAssignedLicense[]>]: [DisabledPlans <String[]>]: A collection of the unique identifiers for plans that have been disabled. [SkuId <String>]: The unique identifier for the SKU. [RemoveLicenses <String[]>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/set-mguserlicense #> function Set-MgUserLicense { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUser])] [CmdletBinding(DefaultParameterSetName='AssignExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Assign', Mandatory)] [Parameter(ParameterSetName='AssignExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='AssignViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='AssignViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Assign', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='AssignViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPathsBfhtneUsersUserIdMicrosoftGraphAssignlicensePostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='AssignExpanded')] [Parameter(ParameterSetName='AssignViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAssignedLicense[]] # . # To construct, see NOTES section for ADDLICENSES properties and create a hash table. ${AddLicenses}, [Parameter(ParameterSetName='AssignExpanded')] [Parameter(ParameterSetName='AssignViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='AssignExpanded')] [Parameter(ParameterSetName='AssignViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${RemoveLicenses}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Assign = 'Microsoft.Graph.Users.Actions.private\Set-MgUserLicense_Assign'; AssignExpanded = 'Microsoft.Graph.Users.Actions.private\Set-MgUserLicense_AssignExpanded'; AssignViaIdentity = 'Microsoft.Graph.Users.Actions.private\Set-MgUserLicense_AssignViaIdentity'; AssignViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Set-MgUserLicense_AssignViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action bypassActivationLock .Description Invoke action bypassActivationLock .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/skip-mgusermanageddeviceactivationlock #> function Skip-MgUserManagedDeviceActivationLock { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Bypass', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Bypass', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Bypass', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='BypassViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Bypass = 'Microsoft.Graph.Users.Actions.private\Skip-MgUserManagedDeviceActivationLock_Bypass'; BypassViaIdentity = 'Microsoft.Graph.Users.Actions.private\Skip-MgUserManagedDeviceActivationLock_BypassViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action cancel .Description Invoke action cancel .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths17Tur4EUsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphCancelPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths17Tur4EUsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphCancelPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/stop-mgusereventinstance #> function Stop-MgUserEventInstance { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='CancelExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Cancel1', Mandatory)] [Parameter(ParameterSetName='CancelExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Cancel1', Mandatory)] [Parameter(ParameterSetName='CancelExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId1}, [Parameter(ParameterSetName='Cancel1', Mandatory)] [Parameter(ParameterSetName='CancelExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CancelViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CancelViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Cancel1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CancelViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths17Tur4EUsersUserIdEventsEventIdInstancesEventId1MicrosoftGraphCancelPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CancelExpanded1')] [Parameter(ParameterSetName='CancelViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CancelExpanded1')] [Parameter(ParameterSetName='CancelViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Cancel1 = 'Microsoft.Graph.Users.Actions.private\Stop-MgUserEventInstance_Cancel1'; CancelExpanded1 = 'Microsoft.Graph.Users.Actions.private\Stop-MgUserEventInstance_CancelExpanded1'; CancelViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\Stop-MgUserEventInstance_CancelViaIdentity1'; CancelViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\Stop-MgUserEventInstance_CancelViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action cancel .Description Invoke action cancel .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1F7X6GlUsersUserIdEventsEventIdMicrosoftGraphCancelPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1F7X6GlUsersUserIdEventsEventIdMicrosoftGraphCancelPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Comment <String>]: INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/stop-mguserevent #> function Stop-MgUserEvent { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='CancelExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Cancel', Mandatory)] [Parameter(ParameterSetName='CancelExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of event ${EventId}, [Parameter(ParameterSetName='Cancel', Mandatory)] [Parameter(ParameterSetName='CancelExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CancelViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CancelViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Cancel', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CancelViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1F7X6GlUsersUserIdEventsEventIdMicrosoftGraphCancelPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CancelExpanded')] [Parameter(ParameterSetName='CancelViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CancelExpanded')] [Parameter(ParameterSetName='CancelViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Comment}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Cancel = 'Microsoft.Graph.Users.Actions.private\Stop-MgUserEvent_Cancel'; CancelExpanded = 'Microsoft.Graph.Users.Actions.private\Stop-MgUserEvent_CancelExpanded'; CancelViaIdentity = 'Microsoft.Graph.Users.Actions.private\Stop-MgUserEvent_CancelViaIdentity'; CancelViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Stop-MgUserEvent_CancelViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action syncDevice .Description Invoke action syncDevice .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/sync-mgusermanageddevice #> function Sync-MgUserManagedDevice { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Sync', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Sync', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Sync', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='SyncViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Sync = 'Microsoft.Graph.Users.Actions.private\Sync-MgUserManagedDevice_Sync'; SyncViaIdentity = 'Microsoft.Graph.Users.Actions.private\Sync-MgUserManagedDevice_SyncViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action validateProperties .Description Invoke action validateProperties .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1Tz6Rb9UsersMicrosoftGraphValidatepropertiesPostRequestbodyContentApplicationJsonSchema .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1Tz6Rb9UsersMicrosoftGraphValidatepropertiesPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: [EntityType <String>]: [MailNickname <String>]: [OnBehalfOfUserId <String>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/test-mguserproperty #> function Test-MgUserProperty { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='ValidateExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Validate1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1Tz6Rb9UsersMicrosoftGraphValidatepropertiesPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='ValidateExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='ValidateExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='ValidateExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${EntityType}, [Parameter(ParameterSetName='ValidateExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${MailNickname}, [Parameter(ParameterSetName='ValidateExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${OnBehalfOfUserId}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Validate1 = 'Microsoft.Graph.Users.Actions.private\Test-MgUserProperty_Validate1'; ValidateExpanded1 = 'Microsoft.Graph.Users.Actions.private\Test-MgUserProperty_ValidateExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action updateWindowsDeviceAccount .Description Invoke action updateWindowsDeviceAccount .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1Q6DqpaUsersUserIdManageddevicesManageddeviceIdMicrosoftGraphUpdatewindowsdeviceaccountPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1Q6DqpaUsersUserIdManageddevicesManageddeviceIdMicrosoftGraphUpdatewindowsdeviceaccountPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [UpdateWindowsDeviceAccountActionParameter <IMicrosoftGraphUpdateWindowsDeviceAccountActionParameter>]: updateWindowsDeviceAccountActionParameter [(Any) <Object>]: This indicates any property can be added to this object. [CalendarSyncEnabled <Boolean?>]: Not yet documented [DeviceAccount <IMicrosoftGraphWindowsDeviceAccount>]: windowsDeviceAccount [(Any) <Object>]: This indicates any property can be added to this object. [Password <String>]: Not yet documented [DeviceAccountEmail <String>]: Not yet documented [ExchangeServer <String>]: Not yet documented [PasswordRotationEnabled <Boolean?>]: Not yet documented [SessionInitiationProtocalAddress <String>]: Not yet documented INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user UPDATEWINDOWSDEVICEACCOUNTACTIONPARAMETER <IMicrosoftGraphUpdateWindowsDeviceAccountActionParameter>: updateWindowsDeviceAccountActionParameter [(Any) <Object>]: This indicates any property can be added to this object. [CalendarSyncEnabled <Boolean?>]: Not yet documented [DeviceAccount <IMicrosoftGraphWindowsDeviceAccount>]: windowsDeviceAccount [(Any) <Object>]: This indicates any property can be added to this object. [Password <String>]: Not yet documented [DeviceAccountEmail <String>]: Not yet documented [ExchangeServer <String>]: Not yet documented [PasswordRotationEnabled <Boolean?>]: Not yet documented [SessionInitiationProtocalAddress <String>]: Not yet documented .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/update-mgusermanageddevicewindowdeviceaccount #> function Update-MgUserManagedDeviceWindowDeviceAccount { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of managedDevice ${ManagedDeviceId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1Q6DqpaUsersUserIdManageddevicesManageddeviceIdMicrosoftGraphUpdatewindowsdeviceaccountPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUpdateWindowsDeviceAccountActionParameter] # updateWindowsDeviceAccountActionParameter # To construct, see NOTES section for UPDATEWINDOWSDEVICEACCOUNTACTIONPARAMETER properties and create a hash table. ${UpdateWindowsDeviceAccountActionParameter}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.Users.Actions.private\Update-MgUserManagedDeviceWindowDeviceAccount_Update'; UpdateExpanded = 'Microsoft.Graph.Users.Actions.private\Update-MgUserManagedDeviceWindowDeviceAccount_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.Users.Actions.private\Update-MgUserManagedDeviceWindowDeviceAccount_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.Users.Actions.private\Update-MgUserManagedDeviceWindowDeviceAccount_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Invoke action onenotePatchContent .Description Invoke action onenotePatchContent .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPaths1C74SuUsersUserIdOnenotePagesOnenotepageIdMicrosoftGraphOnenotepatchcontentPostRequestbodyContentApplicationJsonSchema .Inputs Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODYPARAMETER <IPaths1C74SuUsersUserIdOnenotePagesOnenotepageIdMicrosoftGraphOnenotepatchcontentPostRequestbodyContentApplicationJsonSchema>: . [(Any) <Object>]: This indicates any property can be added to this object. [Commands <IMicrosoftGraphOnenotePatchContentCommand[]>]: [Action <String>]: onenotePatchActionType [Content <String>]: A string of well-formed HTML to add to the page, and any image or file binary data. If the content contains binary data, the request must be sent using the multipart/form-data content type with a 'Commands' part. [Position <String>]: onenotePatchInsertPosition [Target <String>]: The element to update. Must be the #<data-id> or the generated {id} of the element, or the body or title keyword. COMMANDS <IMicrosoftGraphOnenotePatchContentCommand[]>: . [Action <String>]: onenotePatchActionType [Content <String>]: A string of well-formed HTML to add to the page, and any image or file binary data. If the content contains binary data, the request must be sent using the multipart/form-data content type with a 'Commands' part. [Position <String>]: onenotePatchInsertPosition [Target <String>]: The element to update. Must be the #<data-id> or the generated {id} of the element, or the body or title keyword. INPUTOBJECT <IUsersActionsIdentity>: Identity Parameter [AccessReviewInstanceId <String>]: key: id of accessReviewInstance [AppLogCollectionRequestId <String>]: key: id of appLogCollectionRequest [AuthenticationMethodId <String>]: key: id of authenticationMethod [CalendarId <String>]: key: id of calendar [DeviceEnrollmentConfigurationId <String>]: key: id of deviceEnrollmentConfiguration [DeviceLogCollectionResponseId <String>]: key: id of deviceLogCollectionResponse [EventId <String>]: key: id of event [EventId1 <String>]: key: id of event [MailFolderId <String>]: key: id of mailFolder [MailFolderId1 <String>]: key: id of mailFolder [ManagedDeviceId <String>]: key: id of managedDevice [MessageId <String>]: key: id of message [MobileAppTroubleshootingEventId <String>]: key: id of mobileAppTroubleshootingEvent [NotebookId <String>]: key: id of notebook [OnenotePageId <String>]: key: id of onenotePage [OnenoteSectionId <String>]: key: id of onenoteSection [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup [OutlookTaskId <String>]: key: id of outlookTask [UserId <String>]: key: id of user .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.users.actions/update-mguseronenotepagecontent #> function Update-MgUserOnenotePageContent { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='PatchExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0')] param( [Parameter(ParameterSetName='Patch1', Mandatory)] [Parameter(ParameterSetName='PatchExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of onenotePage ${OnenotePageId}, [Parameter(ParameterSetName='Patch1', Mandatory)] [Parameter(ParameterSetName='PatchExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='PatchViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='PatchViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IUsersActionsIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Patch1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='PatchViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IPaths1C74SuUsersUserIdOnenotePagesOnenotepageIdMicrosoftGraphOnenotepatchcontentPostRequestbodyContentApplicationJsonSchema] # . # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='PatchExpanded1')] [Parameter(ParameterSetName='PatchViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='PatchExpanded1')] [Parameter(ParameterSetName='PatchViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOnenotePatchContentCommand[]] # . # To construct, see NOTES section for COMMANDS properties and create a hash table. ${Commands}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Patch1 = 'Microsoft.Graph.Users.Actions.private\Update-MgUserOnenotePageContent_Patch1'; PatchExpanded1 = 'Microsoft.Graph.Users.Actions.private\Update-MgUserOnenotePageContent_PatchExpanded1'; PatchViaIdentity1 = 'Microsoft.Graph.Users.Actions.private\Update-MgUserOnenotePageContent_PatchViaIdentity1'; PatchViaIdentityExpanded1 = 'Microsoft.Graph.Users.Actions.private\Update-MgUserOnenotePageContent_PatchViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # SIG # Begin signature block # MIIjlgYJKoZIhvcNAQcCoIIjhzCCI4MCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDs9JVxoE6APw8T # p2uwZnE1Ze549d0DJtBvLPxyDf7u4KCCDYUwggYDMIID66ADAgECAhMzAAABiK9S # 1rmSbej5AAAAAAGIMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p # bmcgUENBIDIwMTEwHhcNMjAwMzA0MTgzOTQ4WhcNMjEwMzAzMTgzOTQ4WjB0MQsw # CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u # ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB # AQCSCNryE+Cewy2m4t/a74wZ7C9YTwv1PyC4BvM/kSWPNs8n0RTe+FvYfU+E9uf0 # t7nYlAzHjK+plif2BhD+NgdhIUQ8sVwWO39tjvQRHjP2//vSvIfmmkRoML1Ihnjs # 9kQiZQzYRDYYRp9xSQYmRwQjk5hl8/U7RgOiQDitVHaU7BT1MI92lfZRuIIDDYBd # vXtbclYJMVOwqZtv0O9zQCret6R+fRSGaDNfEEpcILL+D7RV3M4uaJE4Ta6KAOdv # V+MVaJp1YXFTZPKtpjHO6d9pHQPZiG7NdC6QbnRGmsa48uNQrb6AfmLKDI1Lp31W # MogTaX5tZf+CZT9PSuvjOCLNAgMBAAGjggGCMIIBfjAfBgNVHSUEGDAWBgorBgEE # AYI3TAgBBggrBgEFBQcDAzAdBgNVHQ4EFgQUj9RJL9zNrPcL10RZdMQIXZN7MG8w # VAYDVR0RBE0wS6RJMEcxLTArBgNVBAsTJE1pY3Jvc29mdCBJcmVsYW5kIE9wZXJh # dGlvbnMgTGltaXRlZDEWMBQGA1UEBRMNMjMwMDEyKzQ1ODM4NjAfBgNVHSMEGDAW # gBRIbmTlUAXTgqoXNzcitW2oynUClTBUBgNVHR8ETTBLMEmgR6BFhkNodHRwOi8v # d3d3Lm1pY3Jvc29mdC5jb20vcGtpb3BzL2NybC9NaWNDb2RTaWdQQ0EyMDExXzIw # MTEtMDctMDguY3JsMGEGCCsGAQUFBwEBBFUwUzBRBggrBgEFBQcwAoZFaHR0cDov # L3d3dy5taWNyb3NvZnQuY29tL3BraW9wcy9jZXJ0cy9NaWNDb2RTaWdQQ0EyMDEx # XzIwMTEtMDctMDguY3J0MAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQELBQADggIB # ACnXo8hjp7FeT+H6iQlV3CcGnkSbFvIpKYafgzYCFo3UHY1VHYJVb5jHEO8oG26Q # qBELmak6MTI+ra3WKMTGhE1sEIlowTcp4IAs8a5wpCh6Vf4Z/bAtIppP3p3gXk2X # 8UXTc+WxjQYsDkFiSzo/OBa5hkdW1g4EpO43l9mjToBdqEPtIXsZ7Hi1/6y4gK0P # mMiwG8LMpSn0n/oSHGjrUNBgHJPxgs63Slf58QGBznuXiRaXmfTUDdrvhRocdxIM # i8nXQwWACMiQzJSRzBP5S2wUq7nMAqjaTbeXhJqD2SFVHdUYlKruvtPSwbnqSRWT # GI8s4FEXt+TL3w5JnwVZmZkUFoioQDMMjFyaKurdJ6pnzbr1h6QW0R97fWc8xEIz # LIOiU2rjwWAtlQqFO8KNiykjYGyEf5LyAJKAO+rJd9fsYR+VBauIEQoYmjnUbTXM # SY2Lf5KMluWlDOGVh8q6XjmBccpaT+8tCfxpaVYPi1ncnwTwaPQvVq8RjWDRB7Pa # 8ruHgj2HJFi69+hcq7mWx5nTUtzzFa7RSZfE5a1a5AuBmGNRr7f8cNfa01+tiWjV # Kk1a+gJUBSP0sIxecFbVSXTZ7bqeal45XSDIisZBkWb+83TbXdTGMDSUFKTAdtC+ # r35GfsN8QVy59Hb5ZYzAXczhgRmk7NyE6jD0Ym5TKiW5MIIHejCCBWKgAwIBAgIK # YQ6Q0gAAAAAAAzANBgkqhkiG9w0BAQsFADCBiDELMAkGA1UEBhMCVVMxEzARBgNV # BAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jv # c29mdCBDb3Jwb3JhdGlvbjEyMDAGA1UEAxMpTWljcm9zb2Z0IFJvb3QgQ2VydGlm # aWNhdGUgQXV0aG9yaXR5IDIwMTEwHhcNMTEwNzA4MjA1OTA5WhcNMjYwNzA4MjEw # OTA5WjB+MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UE # BxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSgwJgYD # VQQDEx9NaWNyb3NvZnQgQ29kZSBTaWduaW5nIFBDQSAyMDExMIICIjANBgkqhkiG # 9w0BAQEFAAOCAg8AMIICCgKCAgEAq/D6chAcLq3YbqqCEE00uvK2WCGfQhsqa+la # UKq4BjgaBEm6f8MMHt03a8YS2AvwOMKZBrDIOdUBFDFC04kNeWSHfpRgJGyvnkmc # 6Whe0t+bU7IKLMOv2akrrnoJr9eWWcpgGgXpZnboMlImEi/nqwhQz7NEt13YxC4D # dato88tt8zpcoRb0RrrgOGSsbmQ1eKagYw8t00CT+OPeBw3VXHmlSSnnDb6gE3e+ # lD3v++MrWhAfTVYoonpy4BI6t0le2O3tQ5GD2Xuye4Yb2T6xjF3oiU+EGvKhL1nk # kDstrjNYxbc+/jLTswM9sbKvkjh+0p2ALPVOVpEhNSXDOW5kf1O6nA+tGSOEy/S6 # A4aN91/w0FK/jJSHvMAhdCVfGCi2zCcoOCWYOUo2z3yxkq4cI6epZuxhH2rhKEmd # X4jiJV3TIUs+UsS1Vz8kA/DRelsv1SPjcF0PUUZ3s/gA4bysAoJf28AVs70b1FVL # 5zmhD+kjSbwYuER8ReTBw3J64HLnJN+/RpnF78IcV9uDjexNSTCnq47f7Fufr/zd # sGbiwZeBe+3W7UvnSSmnEyimp31ngOaKYnhfsi+E11ecXL93KCjx7W3DKI8sj0A3 # T8HhhUSJxAlMxdSlQy90lfdu+HggWCwTXWCVmj5PM4TasIgX3p5O9JawvEagbJjS # 4NaIjAsCAwEAAaOCAe0wggHpMBAGCSsGAQQBgjcVAQQDAgEAMB0GA1UdDgQWBBRI # bmTlUAXTgqoXNzcitW2oynUClTAZBgkrBgEEAYI3FAIEDB4KAFMAdQBiAEMAQTAL # BgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBRyLToCMZBD # uRQFTuHqp8cx0SOJNDBaBgNVHR8EUzBRME+gTaBLhklodHRwOi8vY3JsLm1pY3Jv # c29mdC5jb20vcGtpL2NybC9wcm9kdWN0cy9NaWNSb29DZXJBdXQyMDExXzIwMTFf # MDNfMjIuY3JsMF4GCCsGAQUFBwEBBFIwUDBOBggrBgEFBQcwAoZCaHR0cDovL3d3 # dy5taWNyb3NvZnQuY29tL3BraS9jZXJ0cy9NaWNSb29DZXJBdXQyMDExXzIwMTFf # MDNfMjIuY3J0MIGfBgNVHSAEgZcwgZQwgZEGCSsGAQQBgjcuAzCBgzA/BggrBgEF # BQcCARYzaHR0cDovL3d3dy5taWNyb3NvZnQuY29tL3BraW9wcy9kb2NzL3ByaW1h # cnljcHMuaHRtMEAGCCsGAQUFBwICMDQeMiAdAEwAZQBnAGEAbABfAHAAbwBsAGkA # YwB5AF8AcwB0AGEAdABlAG0AZQBuAHQALiAdMA0GCSqGSIb3DQEBCwUAA4ICAQBn # 8oalmOBUeRou09h0ZyKbC5YR4WOSmUKWfdJ5DJDBZV8uLD74w3LRbYP+vj/oCso7 # v0epo/Np22O/IjWll11lhJB9i0ZQVdgMknzSGksc8zxCi1LQsP1r4z4HLimb5j0b # pdS1HXeUOeLpZMlEPXh6I/MTfaaQdION9MsmAkYqwooQu6SpBQyb7Wj6aC6VoCo/ # KmtYSWMfCWluWpiW5IP0wI/zRive/DvQvTXvbiWu5a8n7dDd8w6vmSiXmE0OPQvy # CInWH8MyGOLwxS3OW560STkKxgrCxq2u5bLZ2xWIUUVYODJxJxp/sfQn+N4sOiBp # mLJZiWhub6e3dMNABQamASooPoI/E01mC8CzTfXhj38cbxV9Rad25UAqZaPDXVJi # hsMdYzaXht/a8/jyFqGaJ+HNpZfQ7l1jQeNbB5yHPgZ3BtEGsXUfFL5hYbXw3MYb # BL7fQccOKO7eZS/sl/ahXJbYANahRr1Z85elCUtIEJmAH9AAKcWxm6U/RXceNcbS # oqKfenoi+kiVH6v7RyOA9Z74v2u3S5fi63V4GuzqN5l5GEv/1rMjaHXmr/r8i+sL # gOppO6/8MO0ETI7f33VtY5E90Z1WTk+/gFcioXgRMiF670EKsT/7qMykXcGhiJtX # cVZOSEXAQsmbdlsKgEhr/Xmfwb1tbWrJUnMTDXpQzTGCFWcwghVjAgEBMIGVMH4x # CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRt # b25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01p # Y3Jvc29mdCBDb2RlIFNpZ25pbmcgUENBIDIwMTECEzMAAAGIr1LWuZJt6PkAAAAA # AYgwDQYJYIZIAWUDBAIBBQCgga4wGQYJKoZIhvcNAQkDMQwGCisGAQQBgjcCAQQw # HAYKKwYBBAGCNwIBCzEOMAwGCisGAQQBgjcCARUwLwYJKoZIhvcNAQkEMSIEIHzV # /2yRk6Ank77b487IJTe2bbFzKSRNlLbE/6Wuce7jMEIGCisGAQQBgjcCAQwxNDAy # oBSAEgBNAGkAYwByAG8AcwBvAGYAdKEagBhodHRwOi8vd3d3Lm1pY3Jvc29mdC5j # b20wDQYJKoZIhvcNAQEBBQAEggEAiKm4r4Z2SjuoHhnpeI212VqgMwikHGPFlJaM # i3/VdDN9pGSE9vZtOgAGNNrq4oL+PPwmJ6+2hy8EszbrybrVpwWXNpg/+5j+3+nF # A8/kJ/TmP0Ff+KdBKM9wGVDBshxCIckRxeTapZHCcIX4kL+PZCMJ6SQT3ke1rw9K # /BfxwZqqWkOB0EMqGoJE98OXBWNQfFq2Y2OjVc1ugWThN6sdWb3x3DpQxg5Pf1rY # OWjNuE0nugf7V9KZ/Cv49F8B/7lldj00QEiVpASRLDNL1mwBGJo7ARlKrBc8GcMQ # b+b+i2ldWrOf8LdO9PkGal0mQRZQGwoXNOCC0XaE3az5oCQnWqGCEvEwghLtBgor # BgEEAYI3AwMBMYIS3TCCEtkGCSqGSIb3DQEHAqCCEsowghLGAgEDMQ8wDQYJYIZI # AWUDBAIBBQAwggFVBgsqhkiG9w0BCRABBKCCAUQEggFAMIIBPAIBAQYKKwYBBAGE # WQoDATAxMA0GCWCGSAFlAwQCAQUABCCGAED4C7ClFWYC2kcuLtr7o+n2OS1akO4V # hE3bPaqm5wIGYBBfcSSfGBMyMDIxMDEyODIwMjMwNS43MjZaMASAAgH0oIHUpIHR # MIHOMQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMH # UmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSkwJwYDVQQL # EyBNaWNyb3NvZnQgT3BlcmF0aW9ucyBQdWVydG8gUmljbzEmMCQGA1UECxMdVGhh # bGVzIFRTUyBFU046QzRCRC1FMzdGLTVGRkMxJTAjBgNVBAMTHE1pY3Jvc29mdCBU # aW1lLVN0YW1wIFNlcnZpY2Wggg5EMIIE9TCCA92gAwIBAgITMwAAASM4sOSt2FqQ # nQAAAAABIzANBgkqhkiG9w0BAQsFADB8MQswCQYDVQQGEwJVUzETMBEGA1UECBMK # V2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0 # IENvcnBvcmF0aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0Eg # MjAxMDAeFw0xOTEyMTkwMTE0NTZaFw0yMTAzMTcwMTE0NTZaMIHOMQswCQYDVQQG # EwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwG # A1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSkwJwYDVQQLEyBNaWNyb3NvZnQg # T3BlcmF0aW9ucyBQdWVydG8gUmljbzEmMCQGA1UECxMdVGhhbGVzIFRTUyBFU046 # QzRCRC1FMzdGLTVGRkMxJTAjBgNVBAMTHE1pY3Jvc29mdCBUaW1lLVN0YW1wIFNl # cnZpY2UwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCdvNDJsGSl3AEu # 8dmbwOEzjgs8Put17PVCxlrXWQzd1ZfmhkBLDMBKyJIM0ItH0ztLDg/Td4TtR2k1 # h6EvNDf0G+qC0dlgmZL/1TOFhZ04Tr98gOc0rfr7ijcK4xBxQtI5TAwiamlO0rel # iW5f5AD+bIDNKraRBEIcbVWn/CKFeZavL4DCTa99DuK6i2BIv2GVkGWMEBwIlTLp # wmKSYnHJzTjUUXYNg908rttnhCcD0D+g5HhIqDMvXoTJga5IwA1ToEFfk+Joq/oQ # CXiDcrKbOsIETuao7lefo73MzUGtVpu48bKgb9OBgpSKeTR7610JmfZqWXY9648R # bmWyo3dxAgMBAAGjggEbMIIBFzAdBgNVHQ4EFgQUgdRsFIDTjRv5EcKwaN4ZFfgM # nh4wHwYDVR0jBBgwFoAU1WM6XIoxkPNDe3xGG8UzaFqFbVUwVgYDVR0fBE8wTTBL # oEmgR4ZFaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraS9jcmwvcHJvZHVjdHMv # TWljVGltU3RhUENBXzIwMTAtMDctMDEuY3JsMFoGCCsGAQUFBwEBBE4wTDBKBggr # BgEFBQcwAoY+aHR0cDovL3d3dy5taWNyb3NvZnQuY29tL3BraS9jZXJ0cy9NaWNU # aW1TdGFQQ0FfMjAxMC0wNy0wMS5jcnQwDAYDVR0TAQH/BAIwADATBgNVHSUEDDAK # BggrBgEFBQcDCDANBgkqhkiG9w0BAQsFAAOCAQEAW+UBt6pX6Fuq9VeJU/pDvC1M # xd9kt31H4J/0tUEAT8zkbP+ro49PcrR1jQ3znsMJEsmtX/EvXvgW515Jx+Zd0ep0 # tgZEUwDbU5l8bzC0wsr3mHvyUCH6LPmd4idG9ahw0pxI+kJnX9TMpqzwJOY8YcYY # ol5cCC1I7x+esu6yx8StMJ7B9dhDvTJ5GkjVyTQpkpn4FBJAzc7udwt/ZelzUQD2 # rs9v1rJSFGXF9zQwjIL+YWYtp4XffR8cmiSbHJ9X/IWVwPvn9RzW6vG3ZIdzmIEZ # za+0HZzvhrr7bt3chqmHUDDBj5wLeC+xMPcpI8tFKM+uP69Em0CEWLcuXjPTNzCC # BnEwggRZoAMCAQICCmEJgSoAAAAAAAIwDQYJKoZIhvcNAQELBQAwgYgxCzAJBgNV # BAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4w # HAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xMjAwBgNVBAMTKU1pY3Jvc29m # dCBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAyMDEwMB4XDTEwMDcwMTIxMzY1 # NVoXDTI1MDcwMTIxNDY1NVowfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hp # bmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jw # b3JhdGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIwMTAw # ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCpHQ28dxGKOiDs/BOX9fp/ # aZRrdFQQ1aUKAIKF++18aEssX8XD5WHCdrc+Zitb8BVTJwQxH0EbGpUdzgkTjnxh # MFmxMEQP8WCIhFRDDNdNuDgIs0Ldk6zWczBXJoKjRQ3Q6vVHgc2/JGAyWGBG8lhH # hjKEHnRhZ5FfgVSxz5NMksHEpl3RYRNuKMYa+YaAu99h/EbBJx0kZxJyGiGKr0tk # iVBisV39dx898Fd1rL2KQk1AUdEPnAY+Z3/1ZsADlkR+79BL/W7lmsqxqPJ6Kgox # 8NpOBpG2iAg16HgcsOmZzTznL0S6p/TcZL2kAcEgCZN4zfy8wMlEXV4WnAEFTyJN # AgMBAAGjggHmMIIB4jAQBgkrBgEEAYI3FQEEAwIBADAdBgNVHQ4EFgQU1WM6XIox # kPNDe3xGG8UzaFqFbVUwGQYJKwYBBAGCNxQCBAweCgBTAHUAYgBDAEEwCwYDVR0P # BAQDAgGGMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAU1fZWy4/oolxiaNE9 # lJBb186aGMQwVgYDVR0fBE8wTTBLoEmgR4ZFaHR0cDovL2NybC5taWNyb3NvZnQu # Y29tL3BraS9jcmwvcHJvZHVjdHMvTWljUm9vQ2VyQXV0XzIwMTAtMDYtMjMuY3Js # MFoGCCsGAQUFBwEBBE4wTDBKBggrBgEFBQcwAoY+aHR0cDovL3d3dy5taWNyb3Nv # ZnQuY29tL3BraS9jZXJ0cy9NaWNSb29DZXJBdXRfMjAxMC0wNi0yMy5jcnQwgaAG # A1UdIAEB/wSBlTCBkjCBjwYJKwYBBAGCNy4DMIGBMD0GCCsGAQUFBwIBFjFodHRw # Oi8vd3d3Lm1pY3Jvc29mdC5jb20vUEtJL2RvY3MvQ1BTL2RlZmF1bHQuaHRtMEAG # CCsGAQUFBwICMDQeMiAdAEwAZQBnAGEAbABfAFAAbwBsAGkAYwB5AF8AUwB0AGEA # dABlAG0AZQBuAHQALiAdMA0GCSqGSIb3DQEBCwUAA4ICAQAH5ohRDeLG4Jg/gXED # PZ2joSFvs+umzPUxvs8F4qn++ldtGTCzwsVmyWrf9efweL3HqJ4l4/m87WtUVwgr # UYJEEvu5U4zM9GASinbMQEBBm9xcF/9c+V4XNZgkVkt070IQyK+/f8Z/8jd9Wj8c # 8pl5SpFSAK84Dxf1L3mBZdmptWvkx872ynoAb0swRCQiPM/tA6WWj1kpvLb9BOFw # nzJKJ/1Vry/+tuWOM7tiX5rbV0Dp8c6ZZpCM/2pif93FSguRJuI57BlKcWOdeyFt # w5yjojz6f32WapB4pm3S4Zz5Hfw42JT0xqUKloakvZ4argRCg7i1gJsiOCC1JeVk # 7Pf0v35jWSUPei45V3aicaoGig+JFrphpxHLmtgOR5qAxdDNp9DvfYPw4TtxCd9d # dJgiCGHasFAeb73x4QDf5zEHpJM692VHeOj4qEir995yfmFrb3epgcunCaw5u+zG # y9iCtHLNHfS4hQEegPsbiSpUObJb2sgNVZl6h3M7COaYLeqN4DMuEin1wC9UJyH3 # yKxO2ii4sanblrKnQqLJzxlBTeCG+SqaoxFmMNO7dDJL32N79ZmKLxvHIa9Zta7c # RDyXUHHXodLFVeNp3lfB0d4wwP3M5k37Db9dT+mdHhk4L7zPWAUu7w2gUDXa7wkn # HNWzfjUeCLraNtvTX4/edIhJEqGCAtIwggI7AgEBMIH8oYHUpIHRMIHOMQswCQYD # VQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEe # MBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSkwJwYDVQQLEyBNaWNyb3Nv # ZnQgT3BlcmF0aW9ucyBQdWVydG8gUmljbzEmMCQGA1UECxMdVGhhbGVzIFRTUyBF # U046QzRCRC1FMzdGLTVGRkMxJTAjBgNVBAMTHE1pY3Jvc29mdCBUaW1lLVN0YW1w # IFNlcnZpY2WiIwoBATAHBgUrDgMCGgMVALoXZo3g4p4Xwu4MNSgQnjP7+1eBoIGD # MIGApH4wfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNV # BAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEmMCQG # A1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIwMTAwDQYJKoZIhvcNAQEF # BQACBQDjvYDMMCIYDzIwMjEwMTI4MjIyODI4WhgPMjAyMTAxMjkyMjI4MjhaMHcw # PQYKKwYBBAGEWQoEATEvMC0wCgIFAOO9gMwCAQAwCgIBAAICHPICAf8wBwIBAAIC # EtMwCgIFAOO+0kwCAQAwNgYKKwYBBAGEWQoEAjEoMCYwDAYKKwYBBAGEWQoDAqAK # MAgCAQACAwehIKEKMAgCAQACAwGGoDANBgkqhkiG9w0BAQUFAAOBgQCgzyW3fZhu # jHwbVfxffRUPntU3E3YzDEW5mFxk8YBGtVOH4zP4TtQ/dX4Xi5Aa0AdSm5pY3mIa # kw3FoxhhFLKC5MPw5JM31G9HyMWBN5YXCjBuGwG88CSNx33HSjY8ZQsOm+nKN4pl # 508k01jB+YfGWMdLn9zY3d2K3FJdlLuAnTGCAw0wggMJAgEBMIGTMHwxCzAJBgNV # BAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4w # HAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xJjAkBgNVBAMTHU1pY3Jvc29m # dCBUaW1lLVN0YW1wIFBDQSAyMDEwAhMzAAABIziw5K3YWpCdAAAAAAEjMA0GCWCG # SAFlAwQCAQUAoIIBSjAaBgkqhkiG9w0BCQMxDQYLKoZIhvcNAQkQAQQwLwYJKoZI # hvcNAQkEMSIEIAKhv/x/HuCYTm5PAWKBbUYNcFL7bxoL1neCIeQrqlGvMIH6Bgsq # hkiG9w0BCRACLzGB6jCB5zCB5DCBvQQgEZozgz/7RMzEDaOjrMSkAAy/KcCiZDOW # J1yq6vsVgbMwgZgwgYCkfjB8MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGlu # Z3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBv # cmF0aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EgMjAxMAIT # MwAAASM4sOSt2FqQnQAAAAABIzAiBCDAhU3SbOezAuiE87m+oi/6ffe5z+BVexiF # 8FNYsB3GyjANBgkqhkiG9w0BAQsFAASCAQA6tL6lvJ7t/YmjD3+wT4w7b/owKKzg # FIOeg72vHs8bXRjLy0R+9ipOpI9rk6Er+s1FZGSn+OhMtH+4tXdgrJc3l402ixe2 # bFpeKUkFh47Gq3ps75SgtUJRENvauNs1l7V6LoU07H5jlbC+ObWElO+ONXb2iSTm # POrKRcD/8bj3bS7xYSeSdJJu2pgoEZG1nkbkUOLBg0QC8/KxxKXhETcdTXjh/xUf # IDW6cCqa3mu/Dt2hpbBAVp/Qe1HzQurJ+t5f4L4baiDp/pHLaL8Cup9tvoicA/6v # C5QAKwc1WHP49S+lB4kwsThhQVTFEP6yThnZ72Efcn9GsKXsSIxeIHBW # SIG # End signature block |