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

McKnife
McKnife used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Qlemo"Batchelor", Developer and EE Topic Advisor
Top Expert 2015

Commented:
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.
Distinguished Expert 2018

Author

Commented:
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"Batchelor", Developer and EE Topic Advisor
Top Expert 2015

Commented:
You mean you go from a restricted to an admin user?
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

Distinguished Expert 2018

Author

Commented:
Correct.
Qlemo"Batchelor", Developer and EE Topic Advisor
Top Expert 2015

Commented:
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.
Distinguished Expert 2018
Commented:
Yes, and that behavior of non-explorer programs is new, starts with 10, so maybe a bug. See also 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

That explorer setting does not help.
Distinguished Expert 2018

Author

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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial