Get-DSGatewayLogs
Sinossi
Ottenere i log di un gateway
Sintassi
__AllParameterSets
Get-DSGatewayLogs -GatewayID <guid> -OutputPath <string> [-AsLegacyResponse] [<CommonParameters>]Descrizione
Ottenere i log di un gateway. I log verranno archiviati nel percorso specificato. È richiesto il modulo Devolutions Gateway.
Esempi
PS C:\> $response = Get-DSGateway -All -AsLegacyResponse;
$gateways = $response.Data;
$gateways | ForEach-Object {Get-DSGatewayLogs -GatewayID $_.Id -OutputPath "C:\my\path\filename_$_.Name.txt"}Ottenere i log di tutti i gateway e creare un file per ognuno di essi.
Parametri
-AsLegacyResponse
Nelle versioni precedenti alla 2024.2, molti cmdlet DS restituivano un oggetto ServerResponse. L'attivazione di questo switch di retrocompatibilità consente agli script sviluppati per le versioni precedenti di funzionare correttamente.
-GatewayID
ID del gateway
-OutputPath
Percorso, incluso il nome del file e l'estensione, in cui verrà salvato il file.
CommonParameters
Questo cmdlet supporta i parametri comuni: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction e -WarningVariable. Per maggiori informazioni, veda about_CommonParameters.
Note
Per maggiori informazioni, digiti "Get-Help Get-DSGatewayLogs -detailed". Per informazioni tecniche, digiti "Get-Help Get-DSGatewayLogs -full".
Ultimo aggiornamento
È stato utile?