Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8415395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:26:04+00:00 2026-06-10T01:26:04+00:00

I started Explorer.exe from Powershell and want to get the process id of the

  • 0

I started “Explorer.exe” from Powershell and want to get the process id of the explorer window so that I would not mis-operate on other explorer windows.

Code: Start-Process “Explorer.exe” -PassThru
Result: I can see the process id but it’s different with the real process id of the window in UISpy or in task manager. Seems explorer.exe start another process (B) can exit itself and finally we see the process (B). And the process I got is the exited process.
Question: How can I get the real process id (B)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T01:26:06+00:00Added an answer on June 10, 2026 at 1:26 am

    Explorer.exe will momentarily start a brand new process, but that process will die quickly, handing off its state to an existing explorer process. In general, it will not persist and add to a growing collection of processes, as most programs would.

    See this in action:

    "Old explorer.exe instances"
    Get-Process explorer
    
    Start-Process explorer.exe
    sleep 1  # wait for this one to die
    
    "New explorer.exe instances"
    Get-Process explorer
    

    You will see that it’s the same set of explorer instances. I think this is related to the reg key HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced [SeparateProcess]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how to change the way explorer.exe and service.exe is started up to edit process
Process.Start(IExplore.exe); Does this always work, on every machine ? If not, how to do
Recently an application I wrote started not working on Internet Explorer. There has been
I currently have a single application that needs to be started from a windows
I'm working on a script to get started in PowerShell . I'm trying to
So, I'm just getting started with Bazaar. I am using Bazaar explorer for Windows
I'm getting started with ASP.NET MVC, but would like to explore further. I've walked
Started learning algorithms. I understand how to find theta-notation from a 'regular recurrence' like
Started with this question: OpenID. How do you logout OK. So OpenID does not
Started working on a new application this week that is running the latest rails

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.