Start-Process ignores the parameter "-wait" with explorer.exe

Hi all,
maybe it´s a stupid question, but...
Start-Process notepad.exe -Wait
...will wait for closing the process "notepad.exe".
Start-Process explorer.exe -Wait
...will not wait for closing it, instead the script will go on.
My question: Why? :) is it because "explorer.exe" is a core element of Windows and there are more then one process? For whaty exactly is the parameter "-wait" waiting for? Finishing the process name, the Process ID?
is it a bug?
Otherwise, do you have a good idea for that scenario:
a script will be started and opens a dedicated network share. Within this share the user (ServiceDesk Employee) can paste a CSV file, and after closing the Explorer, the script will read in this CSV and import that informations.
Thank you guys!

I think the issue is due to explorer.exe is always running, if you stop that process, then you will lose your entire desktop. By opening File Explorer, a new explorer.exe process does not start up. You can verify this by opening task manager, and under the
process tab, look at your process count, and then open a few File Explorer windows, this count does not change.
Your script may need to be a two step process, where the Help Desk user manually copies the CSV file, then runs the script, or you can do a Read-Host, where they put in the path to the CSV file, and then your script can copy it to where it needs to go, and
then continue its execution.
If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
Don't Retire Technet

Similar Messages

  • My iPhone 4s is not switching on, I connected it to itunes thru my Windows 7 laptop and it says phone needs to be restored. I clicked okay and it started the process however the progress bar with the apple logo is on the screen, progressbar do not start

    My iPhone 4s is not switching on, I connected it to itunes thru my Windows 7 laptop and it says phone needs to be restored. I clicked okay and it started the process however the progress bar with the apple logo is on the screen, progress in the bar did not start yet after 5 hours. Some one please hep me.

    I did put it in DFU mode but its still not working, although everytime it shows your iphone needs to be restored. Kindly help.

  • Problem with explorer.exe when LR starts

    When starting LR (V1.0) the task manager reports that explorer.exe is eating up about 50% of my CPU. Closing LR does not have an effect. Only a re-start clears it up. This is now the second time I have installed LR as there was a conflict the first time I upgraded from the beta 4 version. I have searched through many of the same folders that my LR library uses with Bridge and Windows explorer and there was no problem with explorer.exe. Only upon starting LR does the problem occur. Any advice much appreciated. Thank you!
    Windows XP Media Center Edition SP2
    Pentium 4 3.2 GHz
    2 GB RAM

    Firefox 2.0.0.20 is the last ever version of Firefox for Win98 / SE / ME.
    You can try KernelEx to get Firefox 3+ to work, but it would be very slow with an old PC of less than 750Mhz.
    http://sourceforge.net/projects/kernelex/

  • On a macbook I purchased secondhand hard drive got corrupted and I started to get the flashing folder with the question mark, I purchased a new hard drive and snow lion install DVD I installed the hard drive and tried disc but kept getting blinking folder

    On a macbook I purchased secondhand hard drive got corrupted and I started to get the flashing folder with the question mark, I purchased a new hard drive and snow lion install DVD I installed the hard drive and tried disc but kept getting blinking folder

    Welcome to Apple Support Communities. We're users here and do not speak for "Apple Inc."
    Power on the computer and insert the DVD immediately.
    Hold down the 'C' key to boot from the Snow Leopard DVD.
    http://support.apple.com/kb/ht1533
    After selecting the appropriate language, if necessary, select Utilities, and Disk Utility.
    You'll likely need to partition and format the new drive before it's recognized.
    http://manuals.info.apple.com/MANUALS/0/MA161/en_US/MacBook_13inch_HardDrive_DIY .pdf
    (Yes, these instructions ARE 7 years old, but the procedure is the same for installing from DVD media.)

  • HT204204 My phone crashed after updating it to IOS 8. I can't use it cause its stucked on the start up menu, the apple logo with black background.

    Hi to all,
    I hope someone can help me. My phone crashed after updating it to IOS 8.3. I can't use it cause its stucked on the start up menu, the apple logo with black background. Even when I restart my phone, it is still stuck on the start up menu, the black background with apple logo in the middle.

    Slone,
    I finally decided to turn this annoyance into an opportunity.  After a lot of experimenting I found that my iPad was just fine under 7.1 if I simply restored it as new.  I have a lot of time on my hands and I had 1424 apps on my iPad!  This is why every attempt to restore took so long.
    I decided to restore as new, spend a day restoring the apps I really used.  Doing so gave me a quick iPad with only bout a quarter of the storage used.
    Granted it was a pain in the arse, but I wrote it off as in the old days when you had to do this with windows 95 just to keep a stable system.
    I DO have some data in a few files of the now unused backup but a quick google search finds a couple Mac programs out there that will allow you go extract audio recordings, app data files etc. from the backup.  I'll do that someday if I even miss the files I've probably forgotten that are there.
    Anyway, there was nothing wrong with my hardware.  I think there were just some troublesome setup items that 7.1 didn't like.  Once set up as new, the ipad was fine.
    Good luck!

  • Why is the iTunes Store crash when I start in on the iPhone 5 with the iOS 07 update?

    Why is the iTunes Store crash when I start in on the iPhone 5 with the iOS 07 update?

    Hi,
    Do you have iTunes 11 on your imac? What OS X do you have?
    Jim

  • I bought iphone 5s 2 days ago and suddenly it turn off and start again till the white screen with apple logo and start again

    i bought iphone 5s 2 days ago and suddenly it turn off and start again till the white screen with apple logo and start again
    please answer me as soon as possible

    Hello Ahmedabokamar,
    Thanks for the question! I'd recommend taking a look at the following article for troubleshooting steps that can help get your iPhone working again.
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Cheers,
    Allen

  • Hi my iMAc 27 inch starts up to the grey screen with apple logo and loading bar underneath it loads halfway then freezes up and shut down after a while please help

    Hi my iMAc 27 inch starts up to the grey screen with apple logo and loading bar underneath it loads halfway then freezes up and shut down after a while please help

    Try the tips listed here Mac OS X: Gray screen appears during startup - Apple Support

  • Firefox will not open any page but I have no trouble with the pages opening with explorer

    unable to connect to any page through firefox but can open all with internet explorer, why can't firefox open them. It can not be my connection or my network because I can still open with explorer and nothing has changed with my computer. Please help I really like to use firefox

    Try to repair the disk permissions: http://thexlab.com/faqs/repairprocess.html
    See also http://support.apple.com/kb/HT2963 Troubleshooting permissions issues in Mac OS X

  • The App store tells me "all downloads are complete", however, the downloads are not loading and i still have the message "waiting" with no ability to complete the installations.

    The App store tells me the downloads are complete, however, the føur items still show up on the Purchases page with the message "waiting" and are not loaded into the computer. I cannot even highlight the apps, nothing works.

    Try disabling anti virus software and turn off the Firewall in System Preferences > Security & Privacy.
    FYI... third party download managers will not work with the App Store.
    From the App Store menu bar click Store > Check for Unfinished Downloads

  • TS1411 my desktop Mac OS X is not starting, I get the gray screen with the apple logo and a bar below and then shot off by itself.

    My Imac is not starting , I get a gray screen with the logo and a bar below and about one minute the bar desapier and shot off by itself. I try evething that I can think of and not luck. I did disconect all accesories and still the same, I use the start up disc and same.. now I can not get the disc out.
    Please advise what I need to do to solve the problem. Recently this computer was upgraded from 10.4 to Mountain lion and add more memory.

    Thanks for your help.
    Same thing happen when I hold the button, it idle for a while and then turn off by itself. Any more suggestions?
    I got the disc..

  • How to populate the parameter selection with a formula

    Post Author: jhartney
    CA Forum: Formula
    Confused or maybe just way to much coffee but I need some help here.
    I want to create a dynamic multiple select parameter field pulled from the database.  The fields in the DB are FIRSTNAME and LASTNAME and I want to concat those to look like "LASTNAME, FIRSTNAME" and populate the parameter list.  The selection from that list will later be passed to the record selection to match in a different database table/field FULLNAME.
    JON

    Post Author: jhartney
    CA Forum: Formula
    Answered my own Q,
    I created a SQL command and used that to populate the parameter field.

  • When I start Firefox for the first time, 1 Firefox.exe shows up in the Task Manager (8,180K), but Firefox doesn't start. When I click on it again, a second Firefox.exe shows in the Task Manager, and Firefox opens. Is the first one a Trojan?

    I'm using version 3.6.12 on Windows XP. The icon points to C:\Program Files\Mozilla Firefox\Firefox.exe. The Properties of that file look okay.

    No, most likely not. I reckon you got some antivirus software on your machine, don't you?
    Sometimes Firefox does load into memory but won't show your start page.
    Simply open the task manager, click on the "Processes" tab and kill the (two or more) firefox.exe processes you've just created. Double-click your Firefox icon and everything should be back to normal.

  • Creative Cloud makes interference with explorer.exe

    After the installation, everytime I go to Control Painel > Uninstal Program, explorer.exe crashes.
    Even when installing Creative Cloud, the explorer.exe is reinicialized.
    So I uninstalled CC and checked Control Painel > Uninstal Program and there was no problem.
    I'm using Windows 7 x64

    Null ID which Adobe Creative program did you remove?  Was it the Creative Cloud Application?

  • Is it possible to realize two different processes in the same time with TDMS?

    Hello all,
    we have one TDMS but a lot of workstreams. Is it possible that 2 different workstreams in the same time realize anonymization in TDMS?
    Thanks in advance!!!
    Ilkin Mammadov

    Hello Anita,
    I am sorry.I mean we have a lot of projects (for example Procurement, Finance, Logistics, etc) and each of them wants to anonymize. But it is existing just one TDMS. Can these projects start with anonymization in the same time or they have to wait till one of projects finished anonymization?
    Thanks in advance!
    Best regards,
    Ilkin

Maybe you are looking for