ScheduledTask: Get-ScheduledTask function name clash with Carbon module #248
Labels
enhancement
The issue is an enhancement request.
help wanted
The issue is up for grabs for anyone in the community.
Details of the scenario you tried and the problem that is occurring
We're using DSC resources from both ComputerManagementDsc and Carbon modules.
Carbon implements
Get-ScheduledTask
function, which is missing the-TaskPath
parameter. Functions fromScheduledTask
DSC resource callGet-ScheduledTask
without importingScheduledTasks
modules, or calling the function using the module name (i.e.ScheduledTasks\Get-ScheduledTask
)This makes it impossible to use or even have installed both modules on the same machine.
Suggested solution to the issue
While this issue might be better addressed in Carbon, it doesn't really hurt making
ScheduledTask
code more specific about whichGet-ScheduledTask
function it's using.We could either make the code explicitly import the
ScheduledTasks
module, or use the "long" form to call overlapping functions (I think it's just `Get-ScheduledTask, but I can review)I'd be happy to submit a patch.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
# insert configuration here
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
6.5.0.0
The text was updated successfully, but these errors were encountered: