Title: Get-FileHash Terminates at Corrupt File · Issue #11931 · PowerShell/PowerShell · GitHub
Open Graph Title: Get-FileHash Terminates at Corrupt File · Issue #11931 · PowerShell/PowerShell
X Title: Get-FileHash Terminates at Corrupt File · Issue #11931 · PowerShell/PowerShell
Description: When running a script to obtain the hashes of all files in a given directory, PS 7.0.0-rc.3 will terminate the command when it comes across a corrupt file. In PS 5.1, the same command will throw an error but continue generating hashes of...
Open Graph Description: When running a script to obtain the hashes of all files in a given directory, PS 7.0.0-rc.3 will terminate the command when it comes across a corrupt file. In PS 5.1, the same command will throw an...
X Description: When running a script to obtain the hashes of all files in a given directory, PS 7.0.0-rc.3 will terminate the command when it comes across a corrupt file. In PS 5.1, the same command will throw an...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11931
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-FileHash Terminates at Corrupt File","articleBody":"When running a script to obtain the hashes of all files in a given directory, PS 7.0.0-rc.3 will terminate the command when it comes across a corrupt file. In PS 5.1, the same command will throw an error but continue generating hashes of additional files. The script I;m using to test is \r\n```powershell\r\nget-childitem h:\\ -Recurse -Force -File | Get-FileHash\r\n```\r\nIn either version of Powershell, I get the error below. The only difference is that the script continues processing in 5.1 and terminates in 7. \r\n\r\n> Get-FileHash: The file or directory is corrupted and unreadable. : 'H:\\Intel\\gp\\profile.dat'","author":{"url":"https://github.com/jasonmull","@type":"Person","name":"jasonmull"},"datePublished":"2020-02-23T01:27:18Z","url":"https://github.com/PowerShell/PowerShell/issues/11931"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:f0ce7128-ab4a-6ab1-dbb2-a90e85b5797f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B34A:3BBE40:C9B5C:11EE11:6AFD4B44 |
| html-safe-nonce | 1bc00d0b6c319a7d80245b1018cae40d7771d4dbdde024e57d5656f79f4a1134 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzRBOjNCQkU0MDpDOUI1QzoxMUVFMTE6NkFGRDRCNDQiLCJ2aXNpdG9yX2lkIjoiMjI2OTk2NTA1MzI0MTE1MDI3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 37f60913467ceaaedb8eef2766583aab224336b065c43f1b253dcf2e8fc1e831 |
| hovercard-subject-tag | issue:569419738 |
| 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/11931/issue_layout |
| twitter:image | https://opengraph.githubassets.com/567430b6611ed5f3fa78a441ccf71f647a1e1d0c1f75e8b2bf389559702dc07b/PowerShell/PowerShell/issues/11931 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/567430b6611ed5f3fa78a441ccf71f647a1e1d0c1f75e8b2bf389559702dc07b/PowerShell/PowerShell/issues/11931 |
| og:image:alt | When running a script to obtain the hashes of all files in a given directory, PS 7.0.0-rc.3 will terminate the command when it comes across a corrupt file. In PS 5.1, the same command will throw an... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jasonmull |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| 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 | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width