-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Add -Current Parameter to Get-Process #27028
Copy link
Copy link
Open
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issuesWG-NeedsReviewNeeds a review by the labeled Working GroupNeeds a review by the labeled Working Group
Metadata
Metadata
Assignees
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issuesWG-NeedsReviewNeeds a review by the labeled Working GroupNeeds a review by the labeled Working Group
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary of the new feature / enhancement
Whilst
Get-Process -id $PIDworks todayThere are potentially times where you can't use $PID like in RestrictedLanguage Mode
So it makes sense to Add -Current parameter which will return info for the Current Process as that will work RestrictedLanguage Mode
This was recommended as another option to think of as opposed to
Proposed technical implementation details (optional)
Add a parameter for Get-Process that return info for the Current running Process