Summary
Creates a new ignored file.
Add-IgnoredFile
-EntryReturns a ignored file object.
Parameters
Parameter | Type | Required? | Notes |
|---|---|---|---|
Entry | Ignored File Object | Yes |
Examples
Create a new ignored file
# Create a ignored file entry object with required fields
$entry = @{
SHA256 = "8671bc3173b0a4211ff852fc1b01fd671324a1e5547e517ef2021bbbe8411169"
}
# Create the entry
$entry = Add-IgnoredFile -Entry $entry
Write-Output "Created 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:
Created ignored fle entry '8671bc3173b0a4211ff852fc1b01fd671324a1e5547e517ef2021bbbe8411169' (Id: #9)
JSON Results:
{
"IgnoredFileId": 9,
"SHA256": "8671bc3173b0a4211ff852fc1b01fd671324a1e5547e517ef2021bbbe8411169",
"Notes": null,
"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:49:29.5162492+00:00",
"LastUpdatedBy": null
}