You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: