MSFN Forum: Unable to open an elevated Windows Explorer window - MSFN Forum

Jump to content


Windows 7 forum rules

If you have questions about customizing Windows 7 that are vLite-specific, please post them in the vLite forum, not here. If you have questions regarding the unattended installation of Windows 7, please post them in the Unattended Windows 7/Server 2008 R2 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Unable to open an elevated Windows Explorer window Here I tell you how to get it working in Windows Vista and Windows 7

#1 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,977
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 20 June 2010 - 04:19 PM

When making a right click on the Explorer and select "Run as administrator" it doesn't start the Windows Explorer with admin rights. The Windows Vista/7 Explorer includes a special function to block such requests.

To disable it, start regedit.exe and go to the following key:

HKEY_CLASSES_ROOT\AppID\{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}


make a right click on Permissions and set your user as owner of the key and give your current user writing permissions.

Next, delete or rename the value RunAs. Now the Elevated-Unelevated Explorer Factory is disabled and you can start the Explorer with admin rights.

Posted Image

This helps you delete files, for which you need admin rights.

Have fun :)

This post has been edited by MagicAndre1981: 27 November 2010 - 07:31 PM



#2 User is offline   Xtreem 

  • Group: Members
  • Posts: 1
  • Joined: 27-November 10
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 November 2010 - 05:53 PM

View PostMagicAndre1981, on 20 June 2010 - 04:19 PM, said:

When making a right click on the Explorer and select "Run as administrator" it doesn't start the Windows Explorer with admin rights. The Windows Vista/7 Explorer includes a special function to block such requests.

To disable it, start regedit.exe and go to the following key:

HKEY_CLASSES_ROOT\AppID\{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}


make a right click on Permissions and set your user as owner of the key and give your current user writing permissions.

Next, delete or rename the value RunAs. Now the Elevated-Unelevated Explorer Factory is disabled and you can start the Explorer with admin rights.

IMG REMOVED

This helps you delete files, for which you need admin rights.

Have fun :)


If you dont wanna mess up with RegEdit there is the proper way to modify that RunAs field

from your Administrator user open the Run.. window and write dcomcnfg.exe and press enter. The Component Services window will open (same from Administrator Tools).
From Component Services - > Computer - > Local Computer - > Config DCOM select Elevated-Unelevated Explorer Factory, right click and select Properties

Posted Image

Select Identity Pane, you will see first option selected (Interactive User), select the second option (i have italian windows 7 i dont know what the english translate the second option to).

#3 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,977
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 27 November 2010 - 07:29 PM

thanks for pointing this out. The name is "the user who started the application":

Quote

The Launching User: the application will run using the security context of the user who started the application. The launching user and the interactive user may be the same.


INFO: Using DCOM Config (DCOMCNFG.EXE) on Windows NT
http://support.microsoft.com/kb/176799

#4 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 942
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

Posted 30 September 2012 - 06:19 AM

Thanks for the tip, I am running it with Set-ACL, seems to be working on W8. Not sure I will need Set-ACL once I try it from SetupComplete.cmd which runs as system already.


SetACL -on "HKEY_CLASSES_ROOT\AppID\{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}" -ot reg -rec yes -actn setowner -ownr "n:S-1-5-32-544"
SetACL -on "HKEY_CLASSES_ROOT\AppID\{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}" -ot reg -actn ace -ace "n:S-1-5-32-544;p:full"
Remove-ItemProperty -Path "registry::HKEY_CLASSES_ROOT\AppID\{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}" -Name RunAs




This post has been edited by MrJinje: 30 September 2012 - 07:46 AM


#5 User is offline   HarryTri 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 17-August 12
  • OS:XP Home
  • Country: Country Flag

Posted 01 October 2012 - 02:50 PM

The same happens in Windows XP but without the Elevated-Unelevated Explorer Factory. A remedy for this?

#6 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,977
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 02 October 2012 - 02:38 AM

XP doesn't have this issues because it doesn't have the UAC. You have a different issue.

#7 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,977
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 03 October 2012 - 07:54 AM

Btw, the user "mlehmk" posted a tool on the Microsoft Technet forums, to start the Explorer with admin rights:

http://social.techne...6f-106930220e98

You can download it from his DropBox:

https://dl.dropbox.c...lorerLoader.zip

Expand the ZIP and run the tool ElevatedExplorer.exe and it will start at the view "Computer". You can also pass a folder as parameter and Explorer will start at the folder.

#8 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,690
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 03 October 2012 - 07:59 AM

View PostMagicAndre1981, on 20 June 2010 - 04:19 PM, said:

This helps you delete files, for which you need admin rights.


It could also be possible to let you see drives mapped with elevated Command Prompts? I've noticed this sometimes where if you map with an elevated CMD, you can't see or can't use the the mapped drive in Explorer.

#9 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,977
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 03 October 2012 - 08:11 AM

this happens because of the 2 tokens which users have with the UAC.

You can set the value EnableLinkedConnections to workaround this issue:

Quote

To configure the EnableLinkedConnections registry value, follow these steps:

Click Start, type regedit in the Start Search box, and then press Enter.
Locate and then right-click the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Point to New, and then click DWORD Value.
Type EnableLinkedConnections, and then press Enter.
Right-click EnableLinkedConnections, and then click Modify.
In the Value data box, type 1, and then click OK.
Exit Registry Editor, and then restart the computer.


http://support.microsoft.com/kb/937624

#10 User is offline   HarryTri 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 17-August 12
  • OS:XP Home
  • Country: Country Flag

Posted 03 October 2012 - 01:37 PM

View PostMagicAndre1981, on 02 October 2012 - 02:38 AM, said:

XP doesn't have this issues because it doesn't have the UAC. You have a different issue.


In my both Windows XP computers (desktop and laptop) I can't open Windows Explorer with administrator's rights if I am in a restricted user account. Is it normal and if yes what can I do to change it? If no what can be causing it?

#11 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,977
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 03 October 2012 - 03:52 PM

sorry, I have no idea. Ask this in the XP forum because I haven't used XP since Vista Beta2 any longer.

#12 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,690
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 03 October 2012 - 07:02 PM

View PostHarryTri, on 03 October 2012 - 01:37 PM, said:

View PostMagicAndre1981, on 02 October 2012 - 02:38 AM, said:

XP doesn't have this issues because it doesn't have the UAC. You have a different issue.


In my both Windows XP computers (desktop and laptop) I can't open Windows Explorer with administrator's rights if I am in a restricted user account. Is it normal and if yes what can I do to change it? If no what can be causing it?


This is normal for XP. There is no user elevation for limited accounts. However, you can add a Run-As option (in Pro or Enterprise) to the context menu BUT it still requires you to know the credentials for an administrative login on the local machine or domain.

#13 User is offline   HarryTri 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 17-August 12
  • OS:XP Home
  • Country: Country Flag

Posted 08 October 2012 - 02:06 PM

I found the answer to my problem here:

Quote

I know this is an old thread, but in case someone else like me comes along later via search engine...

If you're running IE7 under WinXP, in order to run Windows Explorer with the runas command, it must be run as a separate process. A quick way to do this, without having to change your Folder Options settings, would be to run an instance of Explorer with the undocumented parameter /separate, like this:

runas /user:domain\username "explorer /separate"

...where domain is the domain name or local computer name of which username is a member.

Hope this helps.
Michael


With IE6 I could do the job, then with IE7 I couldn't (but I didn't know why). Obviously the same things that apply to IE7 apply to IE8 that I have now too.

#14 User is offline   AltF5 

  • Group: Members
  • Posts: 1
  • Joined: 01-April 13
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 01 April 2013 - 02:11 PM

I ran into your post during my research of running explorer.exe elevated while keeping UAC enabled (like for Windows 8, to keep running metro apps).
I just wanted to say thanks, and also that I made a post about it just now, here - http://forum.sysinte...203.html#139203

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

3 User(s) are reading this topic
0 members, 3 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy