Solved

Powershell Explorer Process will not open properly

Posted on 2012-04-10
9
403 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Microsoft Windows Server Update Service (WSUS) is free for everyone, but it lacks of some desirable features like send an e-mail to the administrator with the status of all computers on the WSUS server. This article is based on my PowerShell script …
"Migrate" an SMTP relay receive connector to a new server using info from an old server.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

770 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