Title: Get-WinEvent - Suggested enhancements · Issue #10637 · PowerShell/PowerShell · GitHub
Open Graph Title: Get-WinEvent - Suggested enhancements · Issue #10637 · PowerShell/PowerShell
X Title: Get-WinEvent - Suggested enhancements · Issue #10637 · PowerShell/PowerShell
Description: Steps to reproduce Get-WinEvent Expected behavior A user friendly error message when running from a non-elevated session, stating that elevated permissions is needed. I would suggest that the behavior of the default parameter set prompts...
Open Graph Description: Steps to reproduce Get-WinEvent Expected behavior A user friendly error message when running from a non-elevated session, stating that elevated permissions is needed. I would suggest that the behav...
X Description: Steps to reproduce Get-WinEvent Expected behavior A user friendly error message when running from a non-elevated session, stating that elevated permissions is needed. I would suggest that the behav...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/10637
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-WinEvent - Suggested enhancements","articleBody":"# Steps to reproduce\r\n\r\n```powershell\r\nGet-WinEvent\r\n```\r\n# Expected behavior\r\n\r\nA user friendly error message when running from a non-elevated session, stating that elevated permissions is needed.\r\n\r\nI would suggest that the behavior of the default parameter set prompts for required parameters rather than returning cryptic error messages. For example, prompt for the -LogName parameter if no parameters is supplied.\r\n\r\n# Actual behavior\r\n\r\n```none\r\nGet-WinEvent : Could not retrieve information about the Security log. Error: Attempted to perform an unauthorized operation..\r\nAt line:1 char:1\r\n+ Get-WinEvent\r\n+ ~~~~~~~~~~~~\r\n+ CategoryInfo : NotSpecified: (:) [Get-WinEvent], Exception\r\n+ FullyQualifiedErrorId : LogInfoUnavailable,Microsoft.PowerShell.Commands.GetWinEventCommand\r\n\r\nGet-WinEvent : The data is invalid\r\nAt line:1 char:1\r\n+ Get-WinEvent\r\n+ ~~~~~~~~~~~~\r\n+ CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvalidDataException\r\n+ FullyQualifiedErrorId : The data is invalid,Microsoft.PowerShell.Commands.GetWinEventCommand \r\n```\r\n\r\nThe \"Get-WinEvent : The data is invalid\" error is repeated many times, regardless of running elevated or not.\r\n\r\n# Environment data\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 6.2.3\r\nPSEdition Core\r\nGitCommitId 6.2.3\r\nOS Microsoft Windows 10.0.17763\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","author":{"url":"https://github.com/janegilring","@type":"Person","name":"janegilring"},"datePublished":"2019-09-27T12:30:33Z","url":"https://github.com/PowerShell/PowerShell/issues/10637"}
| 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:e625bf1b-dbdf-fc16-a49c-d401abf0d3df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD2C:10FB47:EB758:13ED30:6AFD4B61 |
| html-safe-nonce | 6a13dcf765d3674594257b4dd49e73315b49804c1ac3aed8a1c31a87dacecf58 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDJDOjEwRkI0NzpFQjc1ODoxM0VEMzA6NkFGRDRCNjEiLCJ2aXNpdG9yX2lkIjoiNDI4MTM2ODA4MjcxNjExNzg1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 157cc23f192113de350dc8a189a87736a46e26473f8b973af44675dad7865743 |
| hovercard-subject-tag | issue:499417930 |
| 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/10637/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a78394006831753bd51e746214b915da186a07f8643a31bea6331b2f23bb80c5/PowerShell/PowerShell/issues/10637 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a78394006831753bd51e746214b915da186a07f8643a31bea6331b2f23bb80c5/PowerShell/PowerShell/issues/10637 |
| og:image:alt | Steps to reproduce Get-WinEvent Expected behavior A user friendly error message when running from a non-elevated session, stating that elevated permissions is needed. I would suggest that the behav... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | janegilring |
| 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