Synopsis
Decodes strings that LabTech stores encoded in the registry (such as the server password, proxy username, and proxy password). The function uses Triple-DES decryption with an MD5-hashed key. If decoding with the supplied key fails and-Force is set (the default), alternate default keys are tried automatically.
Syntax
Parameters
The Base64-encoded string to decode. Accepts an array of strings.
- Position: 1
- Pipeline input: accepted by value and by property name
The decryption key. If not provided (or if
$null is passed), the module’s built-in default key is used. Supply an array to try multiple keys in order.- Pipeline input: accepted by property name
When set, the function retries decoding with alternate default keys if the provided key fails. Defaults to
$True. Pass -Force:$False to suppress fallback attempts.Return value
Returns astring[] containing the decoded value for each input string, in the same order. Returns $null if no key succeeds for a given input.