Skip to content

The script failed to execute due to hash mismatch #729

Description

@geniuszxy

Similar to #541 ,I downloaded the script from https://dot.net/v1/dotnet-install.ps1, set the locale to en-US, executed the script and failed:

PS E:\> .\dotnet-install.ps1
.\dotnet-install.ps1 : File E:\dotnet-install.ps1 cannot be loaded. The contents of file E:\dotnet-install.ps1 might
have been changed by an unauthorized user or process, because the hash of the file does not match the hash stored in
the digital signature. The script cannot run on the specified system. For more information, run Get-Help
about_Signing..
At line:1 char:1
+ .\dotnet-install.ps1
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
PS E:\> Get-ExecutionPolicy
AllSigned
PS E:\> Get-Culture

LCID             Name             DisplayName
----             ----             -----------
1033             en-US            English (United States)

Metadata

Metadata

Assignees

No one assigned

    Labels

    untriagedIssue is awaiting triage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions