Skip to content

Find-TssSecret -IncludeInactive does not work #415

@miked1313

Description

@miked1313

Verified issue does not already exist?

Yes

What error did you receive

Warning no secrets found

Please run the command using -Verbose

VERBOSE: Command invocation: Find-TssSecret -TssSession:TssSessionObject -FolderId:TssSessionObject -IncludeInactive:True -Verbose:True
VERBOSE: Filters: filter.folderId=324704
VERBOSE: Performing the operation GET https://ssURL/api/v1/secrets/lookup?sortBy[0].direction=asc&sortBy[0].name=Name&take=2147483647&filter.includeRestricted=true&filter.folderId=324704

Provide a test case or steps to reproduce

$secretsToMove = Find-TssSecret -TssSession $session -FolderId 324616 -IncludeInactive

Expected behavior

Inactive secrets are included in this search

What Edition of Secret Server?

Professional

What version of Secret Server

Current GA release

What PowerShell host was used when producing this error

PowerShell Core (pwsh)

PowerShell Host Version

Name                           Value
----                           -----
PSVersion                      7.4.6
PSEdition                      Core
GitCommitId                    7.4.6
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage needednew issues that are still in state of triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions