Release: COM-handler StrictMode fix (dev -> main) #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What does this PR do?
Promotes the current
devbranch tomainfor release.Included since the last
mainrelease:Get-GmsaScheduledTask.ps1(#1).Scheduled Task actions can be
MSFT_TaskExecAction(Execute / Arguments /WorkingDirectory) or
MSFT_TaskComHandlerAction(ClassId / Data). The Actions block read.Executeunconditionally, so underSet-StrictMode -Version Latestany host with aCOM-handler task threw "The property 'Execute' cannot be found on this object." A
StrictMode-safe property accessor now probes before reading, and the output reports
ActionTypeplusComClassId/ComData.Fixes #
How was this tested?
.ps1filereport without error.
Checklist