Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Unable to open an elevated Windows Explorer window


  • Please log in to reply
13 replies to this topic

#1
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,027 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

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 :)

Edited by MagicAndre1981, 27 November 2010 - 07:31 PM.

Posted Image


How to remove advertisement from MSFN

#2
Xtreem

Xtreem
  • Member
  • 1 posts
  • Joined 27-November 10
  • OS:Windows 7 x64
  • Country: Country Flag

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
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,027 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

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

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
Posted Image

#4
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,039 posts
  • Joined 14-October 09
  • OS:none specified
  • Country: Country Flag

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
# and to enable linked connectons
New-ItemProperty -Path "registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLinkedConnections" -Value 1 -PropertyType "DWord"

Edited by MrJinje, 11 September 2013 - 04:02 AM.


#5
HarryTri

HarryTri

    Member

  • Member
  • PipPip
  • 189 posts
  • Joined 17-August 12
  • OS:Windows 8 x64
  • Country: Country Flag
The same happens in Windows XP but without the Elevated-Unelevated Explorer Factory. A remedy for this?

I always love Windows XP!


#6
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,027 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

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

#7
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,027 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

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.
Posted Image

#8
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,814 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

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.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#9
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,027 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

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

You can set the value EnableLinkedConnections to workaround this issue:

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
Posted Image

#10
HarryTri

HarryTri

    Member

  • Member
  • PipPip
  • 189 posts
  • Joined 17-August 12
  • OS:Windows 8 x64
  • Country: Country Flag

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?

I always love Windows XP!


#11
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,027 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

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

#12
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,814 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator


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.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#13
HarryTri

HarryTri

    Member

  • Member
  • PipPip
  • 189 posts
  • Joined 17-August 12
  • OS:Windows 8 x64
  • Country: Country Flag
I found the answer to my problem here:

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.

I always love Windows XP!


#14
AltF5

AltF5
  • Member
  • 2 posts
  • Joined 01-April 13
  • OS:Windows 7 x64
  • Country: Country Flag
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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN