Avatar of McKnife
McKnife
Flag for Germany asked on

Using runas.exe on win10 is different to former OS' - why?

Experts,

I hope you realize that this, though it is just a technical detail, has an impact on how we can/cannot use certain things, for example administrative tools, on windows 10.

Steps to reproduce:
On Windows 10 (here: v1511)
1 start notepad elevated entering different credentials (via right click or via runas.exe)
2 use the open dialogue to navigate to c:
3 rightclick a folder and select properties. You'll see an error message on windows 10: "the properties for this item are not available"

Why is that?
Windows 10

Avatar of undefined
Last Comment
McKnife

8/22/2022 - Mon
Qlemo

I don't have that behaviour on my W10.
Note that even with elevated privileges you do not have access to all folders by default.
McKnife

ASKER
You don't?
Well I have it on a clean installation.
Let me guess: you are running as admin? Then it works. But if you run as restricted user, then the problem shows.
Qlemo

You mean you go from a restricted to an admin user?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
McKnife

ASKER
Correct.
Qlemo

Confirmed. Going from restricted to unrestricted you seem not to be able to switch the Explorer privileges. But you can use the Open File explorer correctly. I was able to navigate thru the paths without issues, just couldn't open the properties.

If you do the same with e.g. cmd, then start an Explorer from there, you see you do not have changed privileges (i.e. cannot navigate to other users folders, for example). Explorer has "some issues" with switching users, that is no news. It might help to allow to start Explorer windows in a separate process instead of respawning the one for the GUI (in Folder and Search Options) - didn't try that.
ASKER CERTIFIED SOLUTION
McKnife

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
McKnife

ASKER
Solved. It's a bug and MS will fix it. Workaround until the fix arrives: rename the runas entry at HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\{448aee3b-dc65-4af6-bf5f-dce86d62b6c7} to something else. Works instantly.
See discussion at https://social.technet.microsoft.com/Forums/en-US/8a6211f5-7819-4ab9-b475-ced9ab878cf2/using-runasexe-on-win10-behaves-differently-compared-to-former-os?forum=win10itprosecurity
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.