You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document how to check if running in an elevated session #12761
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, "Document new Get-Foo cmdlet" instead of "New cmdlet."
PowerShell Version
7.6, 7.5, 7.4, 5.1
Summary
Documentation based on a PR that implements mechanisms that allow for checking if a session is elevated as well as how this can be done on lower level versions of PowerShell if/when this PR is accepted and merged.
The PR in the PowerShell repo was due to frustration with seeing so much similar code that could be drastically simplified if this was already built in across github and PowerShell Gallery.
Activity