Skip to content

Error Join-Path Cannot bind argument... when running from OS #20

@Rivest8

Description

@Rivest8

When running Manage-DellBiosPasswords-WMI.ps1 from within Windows 11 OS the follow error occurs.

Join-Path : Cannot bind argument to parameter 'Path' becuase it is an empty string.
Line 388

This refers to setting the log file path: $LogFilePath = Join-Path -Path $LogsDirectory -ChildPath $FileName

After some testing it seems that the script is falsely detecting that its running in a Task Sequence within the Get-TaskSequenceStatus Function. It is finding the Task Sequence Object but the $TSEnv.Value("_SMSTSType") is empty. The script is check if its NULL which it is not. I fixed this (I think) by added another check for if('' -eq $SMSTSType).

Why I have a blank _SMSTSType on the computer OS, I am not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions