Skip to content

PowerShell blocks first run with "The operation was canceled by the user." before SmartScreen is passed #25

Description

@dilluti0n

When running dpibreak in PowerShell for the first time after installation, the following error occurs:

ResourceUnavailable: Program 'dpibreak.exe' failed to run: An error occurred trying to start process '...\dpibreak.exe' with working directory '...'. The operation was canceled by the user.

This happens because PowerShell cannot handle the UAC elevation prompt required by dpibreak.exe before Windows SmartScreen has registered the binary. Unlike cmd.exe, PowerShell silently cancels the process instead of showing a SmartScreen prompt.

Workaround

Run dpibreak in cmd.exe first. (or double-click it) A Windows SmartScreen prompt will appear. Click "More info" and "Run anyway" to pass it. After that, dpibreak can be run from any terminal including PowerShell.

Related

See #5 for the related Windows Defender false positive issue with the release zip.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    releaseWindows defender, SmartScreen, winget, ... stuffworkaroundKnown limitation with a documented workaround

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions