> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell/it/powershell-commands/receive-rdmmessage.md).

# Receive-RDMMessage

### Sinossi

Ottiene i messaggi associati allo spazio di lavoro corrente per l'utente effettivo.

### Sintassi

#### \_\_AllParameterSets

```
Receive-RDMMessage [-After <datetime>] [-Before <datetime>] [-CaseSensitive] [-Download]
 [-ExcludeRead] [-ExpiresOn <DateFilter>] [-Force] [-Folder <string>] [-From <string[]>]
 [-Group <string>] [-MarkAsRead] [-SentOn <DateFilter>] [-Subject <string[]>] [-Vault <Object>]
 [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### Descrizione

Ottiene i messaggi associati allo spazio di lavoro corrente per l'utente effettivo. Per impostazione predefinita, i messaggi recuperati non verranno contrassegnati come letti. Lo spazio di lavoro deve essere Devolutions Server o Devolutions Cloud. Devolutions Cloud consente di scaricare solo le voci nel repository desiderato. Devolutions Server supporta le voci credenziali, file e private. Tuttavia, tutte le voci verranno salvate nella cassaforte utente.

### Esempi

#### Esempio 1

```powershell
PS C:\> $messages = Receive-RDMMessage -ExcludeRead; Receive-RDMMessage -From 'First Last' -ExcludeRead -MarkAsRead
```

Ottiene tutti i messaggi non letti. Al momento della ricezione, tutti rimarranno contrassegnati come non letti. Dopo averli letti, l'utente contrassegna come letti i messaggi provenienti da First Last.

#### Esempio 2

```powershell
PS C:\> $messages = Receive-RDMMessage -SentOn Today -From Joe* -MarkAsRead
```

Ottiene tutti i messaggi ricevuti oggi da ogni utente il cui nome inizia con Joe (Joey LastName, Joelle LastName, Joe Blow, ecc.). Al momento della ricezione, tutti verranno contrassegnati come letti.

#### Esempio 3

```powershell
PS C:\> $messages = Receive-RDMMessage -SentOn Today -Subject 'Required connections' -From 'FirstName LastName' -Download -Force -MarkAsRead
```

Ottiene il messaggio o i messaggi inviati oggi da 'FirstName LastName' il cui oggetto è 'Requiered Connections'. I messaggi verranno contrassegnati come letti al momento della ricezione e tutte le connessioni/allegati verranno scaricati senza richiesta di conferma nella cassaforte utente. I file verranno archiviati in 'MyDocuments' e le voci si troveranno nella radice.

#### Esempio 4

```powershell
PS C:\> $messages = Receive-RDMMessage -SentOn Custom -ExpiresOn Custom -After 2000/01/01 -Before 2001/12/31
```

Ottiene i messaggi che sono stati inviati e sono scaduti nel 2000.

#### Esempio 5

```powershell
PS C:\> $messages = Receive-RDMMessage -From *LastName -Subject Subject? -CaseSensitive
```

Ottiene tutti i messaggi delle persone il cui nome termina con LastName e il cui oggetto è Subject seguito da un altro carattere (SubjectA, Subject1).

### Parametri

#### -After

Imposta la data limite inferiore personalizzata inclusiva per il parametro ExpiresOn o SentOn impostato su Custom. Verrà impostata all'inizio della giornata. Se sia ExpiresOn che SentOn sono impostati su Custom, si applicherà a entrambi.

```yaml
Type: System.Nullable`1[System.DateTime]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Before

Imposta la data limite superiore personalizzata inclusiva per il parametro ExpiresOn o SentOn impostato su Custom. Verrà impostata alla fine della giornata. Se sia ExpiresOn che SentOn sono impostati su Custom, si applicherà a entrambi.

```yaml
Type: System.Nullable`1[System.DateTime]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -CaseSensitive

I parametri utilizzati faranno distinzione tra maiuscole e minuscole.

```yaml
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Confirm

Richiede una conferma prima di eseguire il cmdlet.

```yaml
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Download

Scarica le connessioni e gli allegati presenti nel messaggio.

```yaml
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -ExcludeRead

Mantiene solo i messaggi non letti.

```yaml
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -ExpiresOn

Mantiene i messaggi che scadono dopo la data specificata. Se impostato su Custom, i parametri After e Before consentono di definire un intervallo specifico.

```yaml
Type: System.Nullable`1[Devolutions.RemoteDesktopManager.DateFilter]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Folder

Solo per Devolutions Server. Specifica la directory in cui verranno scaricati i file. Se non specificata, sarà 'MyDocuments'. Nel caso in cui un file allegato abbia lo stesso nome di un file esistente nella cartella, quello esistente verrà sovrascritto.

```yaml
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Force

Ignora la conferma per procedere. Se è presente lo switch DownloadAttachment, verranno scaricati gli allegati di tutti i messaggi restituiti.

```yaml
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -ForcePromptAnswer

Switch da usare con cautela. Risponderà automaticamente alle richieste che pongono domande sì/no, sì/no/annulla oppure ok/annulla. In caso di richieste multiple, è possibile passare più valori a questo parametro. Ecco i valori accettati:

* Yes: accetta la richiesta. Copre i valori OK e Automatic.
* No: rifiuta la richiesta sì/no/annulla. "Cancel" è l'opzione di riserva se non è presente l'opzione "No".
* Cancel: annulla la richiesta sì/no/annulla. "No" è l'opzione di riserva se non è presente l'opzione "Cancel".

```yaml
Type: System.Windows.Forms.DialogResult[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -From

Filtra i messaggi in base ai mittenti.

```yaml
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Group

Solo per Devolutions Server. Specifica il gruppo in cui verranno scaricate le connessioni. Se non specificato, sarà nella radice.

```yaml
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -MarkAsRead

Tutti i messaggi recuperati verranno contrassegnati come letti.

```yaml
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -SentOn

Mantiene i messaggi che scadono dopo la data specificata. Se impostato su Custom, i parametri After e Before consentono di definire un intervallo specifico.

```yaml
Type: System.Nullable`1[Devolutions.RemoteDesktopManager.DateFilter]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Subject

Filtra i messaggi in base agli oggetti.

```yaml
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -Vault

Solo per Devolutions Cloud. Specifica la cassaforte in cui verrà salvata la voce.

```yaml
Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### -WhatIf

Mostra cosa accadrebbe se il cmdlet venisse eseguito. Il cmdlet non viene eseguito.

```yaml
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

#### CommonParameters

Questo cmdlet supporta i parametri comuni: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction e -WarningVariable. Per maggiori informazioni, consulti [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

### Note

Per maggiori informazioni, digiti "Get-Help Receive-RDMMessage -detailed". Per informazioni tecniche, digiti "Get-Help Receive-RDMMessage -full".


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell/it/powershell-commands/receive-rdmmessage.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
