Skip to content

Search-TssDirectoryServiceDomain: cannot convert value to type System.Int32 for -DomainName parameter #423

@Thomas-Ashworth

Description

@Thomas-Ashworth

Verified issue does not already exist?

Yes

What error did you receive

Search-TssDirectoryServiceDomain: Cannot process argument transformation on parameter 'DomainName'. Cannot convert value "" to type "System.Int32". Error: "The input string '' was not in a correct format."

Please run the command using -Verbose

no additional verbose output for the type conversion error

Provide a test case or steps to reproduce

Repro is simple, just execute the command with a specified domain name.

Search-TssDirectoryServiceDomain -TssSession $tssSession -DomainName domain.name

If I edit the Search-TssDirectoryServiceDomain.ps1 file directly to change the -DomainName parameter from type [int] to type [string], the command appears to work as expected.

Expected behavior

a list of domains configured within secret server

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

PS>$PSVersionTable

Name Value


PSVersion 7.4.5
PSEdition Core
GitCommitId 7.4.5
OS Microsoft Windows 10.0.22631
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