Title: Passing -ErrorAction Stop to an implicitly remoting function is no longer honored when calling from v7.4-preview.5 · Issue #20209 · PowerShell/PowerShell · GitHub
Open Graph Title: Passing -ErrorAction Stop to an implicitly remoting function is no longer honored when calling from v7.4-preview.5 · Issue #20209 · PowerShell/PowerShell
X Title: Passing -ErrorAction Stop to an implicitly remoting function is no longer honored when calling from v7.4-preview.5 · Issue #20209 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/20209
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Passing -ErrorAction Stop to an implicitly remoting function is no longer honored when calling from v7.4-preview.5","articleBody":"### Prerequisites\r\n\r\n- [X] Write a descriptive title.\r\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- [X] Search the existing issues.\r\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\r\n\r\n### Steps to reproduce\r\n\r\nThanks to @mklement0 for providing this very straightforward repro step\r\n\r\n```powershell\r\nGet-AppLockerFileInformation NoSuch.exe -ErrorAction Stop; 'after'\r\n```\r\n\r\n### Expected behavior\r\n\r\nThe \"after\" should not be printed.\r\n\r\n```powershell\r\n Get-AppLockerFileInformation NoSuch.exe -ErrorAction Stop; 'after'\r\nGet-AppLockerFileInformation: Cannot find path 'C:\\Users\\HotCakeX\\NoSuch.exe' because it does not exist.\r\n```\r\n\r\n### Actual behavior\r\n\r\n\"after\" is printed\r\n\r\n```powershell\r\nGet-AppLockerFileInformation NoSuch.exe -ErrorAction Stop; 'after'\r\nGet-AppLockerFileInformation: Cannot find path 'C:\\Users\\HotCakeX\\NoSuch.exe' because it does not exist.\r\nafter\r\n```\r\n\r\n**This problem doesn't happen in PowerShell 7.3.6**\r\n\r\n### Error details\r\n\r\n```console\r\n\r\nOriginInfo : localhost\r\nException : \r\n Type : System.Management.Automation.RemoteException\r\n SerializedRemoteException : System.Management.Automation.ItemNotFoundException: Cannot find path 'C:\\Users\\HotCakeX\\NoSuch.exe' because it does not exist.\r\n at System.Management.Automation.LocationGlobber.ExpandMshGlobPath(String path, Boolean allowNonexistingPaths, PSDriveInfo drive, ContainerCmdletProvider provider, CmdletProviderContext context)\r\n at System.Management.Automation.LocationGlobber.ResolveDriveQualifiedPath(String path, CmdletProviderContext context, Boolean allowNonexistingPaths, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedMonadPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, ProviderInfo\u0026 provider, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(String path, Boolean allowNonexistingPaths, ProviderInfo\u0026 provider, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.PSCmdlet.GetResolvedProviderPathFromPSPath(String path, ProviderInfo\u0026 provider)\r\n at Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.CmdletHelper.ResolvePSPath(PSCmdlet cmdlet, String path)\r\n at Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.CmdletHelper.ResolvePSPaths(PSCmdlet cmdlet, ICollection`1 paths)\r\n SerializedRemoteInvocationInfo : System.Management.Automation.InvocationInfo\r\n ErrorRecord : \r\n Exception : \r\n Type : System.Management.Automation.RemoteException\r\n SerializedRemoteException : System.Management.Automation.ItemNotFoundException: Cannot find path 'C:\\Users\\HotCakeX\\NoSuch.exe' because it does not exist.\r\n at System.Management.Automation.LocationGlobber.ExpandMshGlobPath(String path, Boolean allowNonexistingPaths, PSDriveInfo drive, ContainerCmdletProvider provider, CmdletProviderContext context)\r\n at System.Management.Automation.LocationGlobber.ResolveDriveQualifiedPath(String path, CmdletProviderContext context, Boolean allowNonexistingPaths, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedMonadPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, ProviderInfo\u0026 provider, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(String path, Boolean allowNonexistingPaths, ProviderInfo\u0026 provider, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.PSCmdlet.GetResolvedProviderPathFromPSPath(String path, ProviderInfo\u0026 provider)\r\n at Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.CmdletHelper.ResolvePSPath(PSCmdlet cmdlet, String path)\r\n at Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.CmdletHelper.ResolvePSPaths(PSCmdlet cmdlet, ICollection`1 paths)\r\n SerializedRemoteInvocationInfo : System.Management.Automation.InvocationInfo\r\n ErrorRecord : \r\n Exception : \r\n Type : System.Management.Automation.RemoteException\r\n SerializedRemoteException : System.Management.Automation.ItemNotFoundException: Cannot find path 'C:\\Users\\HotCakeX\\NoSuch.exe' because it does not exist.\r\n at System.Management.Automation.LocationGlobber.ExpandMshGlobPath(String path, Boolean allowNonexistingPaths, PSDriveInfo drive, ContainerCmdletProvider provider, CmdletProviderContext context)\r\n at System.Management.Automation.LocationGlobber.ResolveDriveQualifiedPath(String path, CmdletProviderContext context, Boolean allowNonexistingPaths, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedMonadPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, ProviderInfo\u0026 provider, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(String path, Boolean allowNonexistingPaths, ProviderInfo\u0026 provider, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.PSCmdlet.GetResolvedProviderPathFromPSPath(String path, ProviderInfo\u0026 provider)\r\n at Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.CmdletHelper.ResolvePSPath(PSCmdlet cmdlet, String path)\r\n at Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.CmdletHelper.ResolvePSPaths(PSCmdlet cmdlet, ICollection`1 paths)\r\n SerializedRemoteInvocationInfo : System.Management.Automation.InvocationInfo\r\n ErrorRecord : \r\n Exception : \r\n Type : System.Management.Automation.RemoteException\r\n SerializedRemoteException : System.Management.Automation.ItemNotFoundException: Cannot find path 'C:\\Users\\HotCakeX\\NoSuch.exe' because it does not exist.\r\n at System.Management.Automation.LocationGlobber.ExpandMshGlobPath(String path, Boolean allowNonexistingPaths, PSDriveInfo drive, ContainerCmdletProvider provider, CmdletProviderContext context)\r\n at System.Management.Automation.LocationGlobber.ResolveDriveQualifiedPath(String path, CmdletProviderContext context, Boolean allowNonexistingPaths, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedMonadPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, ProviderInfo\u0026 provider, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(String path, Boolean allowNonexistingPaths, ProviderInfo\u0026 provider, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.PSCmdlet.GetResolvedProviderPathFromPSPath(String path, ProviderInfo\u0026 provider)\r\n at Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.CmdletHelper.ResolvePSPath(PSCmdlet cmdlet, String path)\r\n at Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.CmdletHelper.ResolvePSPaths(PSCmdlet cmdlet, ICollection`1 paths)\r\n SerializedRemoteInvocationInfo : System.Management.Automation.InvocationInfo\r\n ErrorRecord : \r\n Exception : \r\n Type : System.Management.Automation.RemoteException\r\n SerializedRemoteException : System.Management.Automation.ItemNotFoundException: Cannot find path 'C:\\Users\\HotCakeX\\NoSuch.exe' because it does not exist.\r\n at System.Management.Automation.LocationGlobber.ExpandMshGlobPath(String path, Boolean allowNonexistingPaths, PSDriveInfo drive, ContainerCmdletProvider provider, CmdletProviderContext context)\r\n at System.Management.Automation.LocationGlobber.ResolveDriveQualifiedPath(String path, CmdletProviderContext context, Boolean allowNonexistingPaths, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedMonadPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, ProviderInfo\u0026 provider, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(String path, Boolean allowNonexistingPaths, ProviderInfo\u0026 provider, CmdletProvider\u0026 providerInstance)\r\n at System.Management.Automation.PSCmdlet.GetResolvedProviderPathFromPSPath(String path, ProviderInfo\u0026 provider)\r\n at Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.CmdletHelper.ResolvePSPath(PSCmdlet cmdlet, String path)\r\n at Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.CmdletHelper.ResolvePSPaths(PSCmdlet cmdlet, ICollection`1 paths)\r\n SerializedRemoteInvocationInfo : System.Management.Automation.InvocationInfo\r\n ErrorRecord : …\r\n Message : Cannot find path 'C:\\Users\\HotCakeX\\NoSuch.exe' because it does not exist.\r\n HResult : -2146233087\r\n TargetObject : NoSuch.exe\r\n CategoryInfo : InvalidArgument: (NoSuch.exe:String) [Get-AppLockerFileInformation], ItemNotFoundException\r\n FullyQualifiedErrorId : CmdletHelper-FailedResolvingPSPath,Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.GetAppLockerFileInformationCmdlet\r\n Message : Cannot find path 'C:\\Users\\HotCakeX\\NoSuch.exe' because it does not exist.\r\n HResult : -2146233087\r\n TargetObject : NoSuch.exe\r\n CategoryInfo : InvalidArgument: (NoSuch.exe:String) [Get-AppLockerFileInformation], ItemNotFoundException\r\n FullyQualifiedErrorId : CmdletHelper-FailedResolvingPSPath,Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.GetAppLockerFileInformationCmdlet\r\n Message : Cannot find path 'C:\\Users\\HotCakeX\\NoSuch.exe' because it does not exist.\r\n HResult : -2146233087\r\n TargetObject : NoSuch.exe\r\n CategoryInfo : InvalidArgument: (NoSuch.exe:String) [Get-AppLockerFileInformation], ItemNotFoundException\r\n FullyQualifiedErrorId : CmdletHelper-FailedResolvingPSPath,Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.GetAppLockerFileInformationCmdlet\r\n Message : Cannot find path 'C:\\Users\\HotCakeX\\NoSuch.exe' because it does not exist.\r\n HResult : -2146233087\r\n TargetObject : NoSuch.exe\r\n CategoryInfo : InvalidArgument: (NoSuch.exe:String) [Get-AppLockerFileInformation], ItemNotFoundException\r\n FullyQualifiedErrorId : CmdletHelper-FailedResolvingPSPath,Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.GetAppLockerFileInformationCmdlet\r\n Message : Cannot find path 'C:\\Users\\HotCakeX\\NoSuch.exe' because it does not exist.\r\n HResult : -2146233087\r\nTargetObject : NoSuch.exe\r\nCategoryInfo : InvalidArgument: (NoSuch.exe:String) [Get-AppLockerFileInformation], ItemNotFoundException\r\nFullyQualifiedErrorId : CmdletHelper-FailedResolvingPSPath,Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.GetAppLockerFileInformationCmdlet\r\n```\r\n\r\n\r\n### Environment data\r\n\r\n```powershell\r\nName Value\r\n---- -----\r\nPSVersion 7.4.0-preview.5\r\nPSEdition Core\r\nGitCommitId 7.4.0-preview.5\r\nOS Microsoft Windows 10.0.22631\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n\r\n\r\n### Visuals\r\n\r\n_No response_","author":{"url":"https://github.com/HotCakeX","@type":"Person","name":"HotCakeX"},"datePublished":"2023-09-05T17:20:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/20209/PowerShell/issues/20209"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cc35a572-509d-a6e4-676b-66997ebd6f89 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 834E:19688F:C95D73:123BAC4:6A54A821 |
| html-safe-nonce | ad8afcbf013da66eec211163e53940df9aa3ce0ea67e2bf86f56173da2776a56 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzRFOjE5Njg4RjpDOTVENzM6MTIzQkFDNDo2QTU0QTgyMSIsInZpc2l0b3JfaWQiOiI2ODMyOTg0Njk0MTQ3Mjk1MjY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 44da33d3b1e6019b0932559530e2b652f6c497c27ec5bed5b4369b9a0de39a87 |
| hovercard-subject-tag | issue:1882429360 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/20209/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c03b81f1fe2fca93747b0139e71cd8f988f84db829433f7b08badcb0269d161b/PowerShell/PowerShell/issues/20209 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c03b81f1fe2fca93747b0139e71cd8f988f84db829433f7b08badcb0269d161b/PowerShell/PowerShell/issues/20209 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HotCakeX |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width