> 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-universal/it/comandi-powershell/get-psucache.md).

# Get-PSUCache

Get-PSUCache recupera i dati archiviati nella cache a livello di server di PowerShell Universal, condivisa tra API, dashboard e script.

## SINOSSI

Restituisce i dati dalla cache a livello di server.

## SINTASSI

```powershell
Get-PSUCache -Key <String> [-Detail] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies] [<CommonParameters>]
Get-PSUCache [-Key <String>] -List [-Detail] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies] [-Skip <UInt64>] [-First <UInt64>] [-IncludeTotalCount] [<CommonParameters>]
```

## DESCRIZIONE

Restituisce i dati della cache a livello di server condivisa tra API, dashboard e script. I valori vengono archiviati come CLIXML e deserializzati quando vengono recuperati per chiave. Usi `-List` per restituire gli elementi della cache (100 per pagina per impostazione predefinita); facoltativamente, filtri per chiave e li scorra pagina per pagina. Questo cmdlet può anche essere chiamato in remoto tramite la PowerShell Universal Management API.

## ESEMPI

### Esempio 1

```powershell
Get-PSUCache -Key 'DataTable'
```

Restituisce i dati della cache DataTable. I dati della cache a livello di server vengono archiviati come CLIXML e deserializzati prima di essere restituiti alla pipeline.

## PARAMETRI

| Parametro                | Descrizione                                                                                                      |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------- |
| `-Key`                   | Chiave di cache da recuperare; filtro facoltativo con `-List`.                                                   |
| `-List`                  | Restituisce elementi della cache anziché un valore di cache deserializzato.                                      |
| `-Detail`                | Restituisce i dettagli dell'elemento della cache anziché il valore deserializzato quando si recupera una chiave. |
| `-Skip`                  | Numero di elementi della cache da saltare durante l'elenco.                                                      |
| `-First`                 | Numero massimo di elementi della cache da elencare; il valore predefinito è 100 se omesso.                       |
| `-IncludeTotalCount`     | Emette il conteggio totale degli elementi della cache corrispondenti durante l'elenco.                           |
| `-ComputerName`          | URL o nome host del server PowerShell Universal; alias `-Uri`.                                                   |
| `-AppToken`              | Token dell'app per l'API di gestione.                                                                            |
| `-Credential`            | Credenziali per l'API di gestione.                                                                               |
| `-UseDefaultCredentials` | Usa le credenziali Windows correnti.                                                                             |
| `-Integrated`            | Usa il client di gestione nel processo all'interno di PowerShell Universal.                                      |
| `-TrustCertificate`      | Ignora gli errori di convalida del certificato.                                                                  |
| `-Cookies`               | Riutilizza i cookie di autenticazione per la sessione di PowerShell.                                             |

## INPUT

Nessuno.

## OUTPUT

`System.Object` (valore deserializzato o elementi della cache).

## LINK CORRELATI

[Set-PSUCache](/powershell-universal/it/comandi-powershell/set-psucache.md)

## AUTORIZZAZIONI

Il token di accesso richiede `platform.cache/read` per eseguire questo cmdlet in remoto.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/powershell-universal/it/comandi-powershell/get-psucache.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
