Summary
Retrieves an existing ignored file.
Get-IgnoredFile
-IdReturns a ignored file object.
Parameters
Parameter | Type | Required? | Notes |
|---|---|---|---|
Id | Int32 | Yes | The ignored file id. |
Examples
Get an existing ignored file
This example retrieves a specific ignored file and outputs it as JSON.
# Retrieve a specific ignored file entry by id
$entry = Get-IgnoredFile -Id 8
Write-Output "Retrieved ignored fle entry '$($entry.SHA256)' (Id: #$($entry.IgnoredFileId))"
# For debug purposes, convert the entity to output as JSON so we can see the available fields
Write-Output ""
Write-Output "JSON Results:"
$jsonOutput = $entry | ConvertTo-Json -Depth 10
# Output the entity
Write-Output $jsonOutputExecution results:
Retrieved ignored fle entry 'de1a9f5351362ac3f780284066c5dbe74654e897a927c54cbd9edc96fdc710d6' (Id: #8)
JSON Results:
{
"IgnoredFileId": 8,
"SHA256": "de1a9f5351362ac3f780284066c5dbe74654e897a927c54cbd9edc96fdc710d6",
"Notes": null,
"CreatedByFullName": "Carrie Johnson",
"CreatedById": "d1aacb66-2c15-4c4b-b1b5-54ab70787a38",
"CreatedOn": "2025-07-17T21:17:19.3162007+00:00",
"CreatedBy": null,
"LastUpdatedByFullName": "Carrie Johnson",
"LastUpdatedById": "d1aacb66-2c15-4c4b-b1b5-54ab70787a38",
"LastUpdatedOn": "2025-07-17T21:17:19.3162007+00:00",
"LastUpdatedBy": null
}