Set-IgnoredFile

Prev Next

Summary

Updates an existing ignored file.

Set-IgnoredFile
    -Entry

Returns a ignored file object.

Parameters

Parameter

Type

Required?

Notes

Entry

Ignored File Object

Yes


Examples

Update an existing ignored file

# Get the ignored file entry
$entry = Get-IgnoredFile -Id 9

# Add a note to the ignored file entry
$entry.Notes = "Email signature image."

# Update the ignored file entry
$entry = Set-IgnoredFile -Entry $entry

Write-Output "Updated 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
$jsonOutput = $entry | ConvertTo-Json -Depth 10

Write-Output ""
Write-Output "JSON Results:"

# Output the JSON results
Write-Output $jsonOutput

Execution results:

Updated ignored fle entry '8671bc3173b0a4211ff852fc1b01fd671324a1e5547e517ef2021bbbe8411169' (Id: #9)

JSON Results:
{
  "IgnoredFileId": 9,
  "SHA256": "8671bc3173b0a4211ff852fc1b01fd671324a1e5547e517ef2021bbbe8411169",
  "Notes": "Email signature image.",
  "CreatedByFullName": "Max Miller",
  "CreatedById": "510e109b-6ff5-4442-9670-cd5e3cd82a7a",
  "CreatedOn": "2026-01-21T14:49:29.5162492+00:00",
  "CreatedBy": null,
  "LastUpdatedByFullName": "Max Miller",
  "LastUpdatedById": "510e109b-6ff5-4442-9670-cd5e3cd82a7a",
  "LastUpdatedOn": "2026-01-21T14:52:50.30893+00:00",
  "LastUpdatedBy": null
}