Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-EventSubscriber and Unregister-Event should have examples using -Force #11199

Closed
3 tasks done
SteveL-MSFT opened this issue Jun 19, 2024 · 1 comment · Fixed by #11202
Closed
3 tasks done

Get-EventSubscriber and Unregister-Event should have examples using -Force #11199

SteveL-MSFT opened this issue Jun 19, 2024 · 1 comment · Fixed by #11202
Assignees
Labels
area-utility Area - Microsoft.PowerShell.Utility module issue-doc-bug Issue - error in documentation

Comments

@SteveL-MSFT
Copy link
Contributor

SteveL-MSFT commented Jun 19, 2024

Prerequisites

  • Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
  • Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Typo in Get-Foo cmdlet" instead of "Typo."
  • Verify Version: If there is a mismatch between documentation and the behavior on your system, ensure that the version you are using is the same as the documentation. Check this box if they match or the issue you are reporting is not version specific.

Links

Summary

Some events require use of -Force as they are intentionally hidden

Details

No response

Suggested Fix

Add examples of using -Force to both docs

@SteveL-MSFT SteveL-MSFT added issue-doc-bug Issue - error in documentation needs-triage Waiting - Needs triage labels Jun 19, 2024
@sdwheeler sdwheeler self-assigned this Jun 19, 2024
@sdwheeler sdwheeler added area-utility Area - Microsoft.PowerShell.Utility module and removed needs-triage Waiting - Needs triage labels Jun 19, 2024
@sdwheeler
Copy link
Contributor

Examples from Jim

Register-EngineEvent -SourceIdentifier PowerShell.Exiting -SupportEvent -Action {
    Get-History | Export-Clixml d:\temp\history.clixml
}
get-eventsubscriber
get-eventsubscriber -force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-utility Area - Microsoft.PowerShell.Utility module issue-doc-bug Issue - error in documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants