PowerShell / PowerShell/PowerShell

Add -Current Parameter to Get-Process

Open
#27,028 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Enhancement Needs-Triage WG-Cmdlets WG-NeedsReview
Dominant language
C#
Stars
55.5k
Forks
8.5k
Avg merge
1d 2h
Merged PRs (30d)
88

Description

Summary of the new feature / enhancement

Whilst Get-Process -id $PID works today
There 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

  • #26950
Proposed technical implementation details (optional)

Add a parameter for Get-Process that return info for the Current running Process

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Get-Process cmdlet and reviewing its current -Id behavior, especially under RestrictedLanguage Mode. Done means a -Current parameter returns information for the current process and the behavior is covered by the project's relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.