Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Rivest8 opened this issue May 31, 2024 · 0 comments
Open

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

Rivest8 opened this issue May 31, 2024 · 0 comments

Comments

@Rivest8
Copy link

Rivest8 commented May 31, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant