Solved

Powershell Explorer Process will not open properly

Posted on 2012-04-10
9
406 Views
Last Modified: 2012-05-29
I'm using the following command in Powershell to try to open explorer with elevated privileges.  I get the attached error.  The account I'm using has administrative privileges.


Start-Process explorer.exe -Credential Get-Credintials
Doc1.docx
0
Comment
Question by:JAMES125
  • 5
  • 4
9 Comments
 
LVL 69

Expert Comment

by:Qlemo
ID: 37827248
What's your drive you are running that line from? If it is a network drive: That will not work, as your network drives are not accessible by other accounts.
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 37827250
BTW, please use a program like MS Paint to create snapshop files. Embedding pictures in Office documents is bad practise.
0
 

Author Comment

by:JAMES125
ID: 37827460
I open Powershell ISE with a run as with my admin account and execute it from their.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 69

Expert Comment

by:Qlemo
ID: 37827566
That won't work anyway. Explorer will not run with a different account - even if you provide different credentials with the start-process cmdlet, Explorer ignores that. And you get a second instance only if you have enabled that in Folder Options ("Launch folder windows in a separate process").
0
 

Author Comment

by:JAMES125
ID: 37827595
Do you have any suggested code to provide me the ability to open an explorer window under different credintials?
0
 
LVL 69

Accepted Solution

by:
Qlemo earned 500 total points
ID: 37827663
Nope. Nothing works to fool the system, at least with Vista and above.
0
 

Author Comment

by:JAMES125
ID: 38023728
I've requested that this question be deleted for the following reason:

no solution availabel
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 38023729
"You can't do it" is a valid answer, see http://www.experts-exchange.com/help/viewHelpPage.jsp?helpPageID=23 . You asked for something which is not possible, not just unknown how to do, as stated in http:#a37827566 is the answer.
0
 

Author Closing Comment

by:JAMES125
ID: 38023795
Thanks
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Set OWA language and time zone in Exchange for individuals, all users or per database.
Synchronize a new Active Directory domain with an existing Office 365 tenant
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question