Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Windows 8.1 and file sharing
#1
I've noted an oddity in Windows 8.1 that I can't explain; I hope someone can jump in with an answer.

In previous versions of Windows you can create a share from the GUI and see it in a cmd.exe session for the same user and vice-versa. The same is true for Win 8.1 UNLESS
  • You 'run as administrator' when you start cmd.exe; In that case you can not 'see' shares (using 'net share') and any share that you create is not seen in the GUI. The odd thing is that if you do a 'WhoAmI' from either command line (regular or admin) it shows the same user name ("beachfield-xyzzy\mark" in my case).

Any thoughts or a definitive answer?
Mark Stega
Reply
#2
I guess it's now really a different account at some level where the shared resource accountability is done. Doesn't seem right, but it's hard to explain otherwise. The UAC stuff is just supposed to increase the rights of the current account. But maybe there's some fundamental reason why that's not safe enough or something.

If you create it from the admin enabled command line, does it show up in the GUI?
Dean Roddey
Explorans limites defectum
Reply
#3
Dean Roddey Wrote:I guess it's now really a different account at some level where the shared resource accountability is done. Doesn't seem right, but it's hard to explain otherwise. The UAC stuff is just supposed to increase the rights of the current account. But maybe there's some fundamental reason why that's not safe enough or something.
I suppose so, but it was a very unexpected outcome of 'run as admin'.

Quote:If you create it from the admin enabled command line, does it show up in the GUI?
Nope - bidirectional weirdness, I can't see the shares created by either the GUI or a regular cmd.exe nor are shares created by the admin cmd.exe visible to the GUI or non-admin cmd.exe windows.
Mark Stega
Reply
#4
I guess maybe run as admin is slightly different from the temporary bump in privileges that the UAC thingy does.

Yeh, it's more than just shares. I run my development command lines as Admin. I just tried to edit a text file I created from one of those command lines, from a non-run-as-admin command line, and when I try to save it, it forces me to save to another file name. I can't update it.

But, in this case, it has the asymmetry one would expect. I.e. I can edit a file created not as admin from an admin elevated session, but not the other way around.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Windows 10 Reboot/Update Nag Screen gReatAutomation 7 5,168 03-31-2020, 04:48 PM
Last Post: LesAuber
  Windows 10 Tablet gReatAutomation 21 8,565 07-25-2019, 03:59 PM
Last Post: znelbok
  how would i read a csv file? indygreg 6 4,713 11-14-2017, 09:53 AM
Last Post: Dean Roddey
  Venue 8 Pro Windows 10 potts.mike 21 8,218 03-08-2016, 09:39 AM
Last Post: jkmonroe
  2 windows from single sensor? jkmonroe 8 5,929 01-25-2016, 05:34 PM
Last Post: CJohnson
  Windows Update high CPU usage Dean Roddey 5 3,649 09-09-2015, 03:20 PM
Last Post: znelbok
  Windows 10 and Windows Phone dogman 8 4,659 05-01-2015, 08:29 AM
Last Post: Dean Roddey
  The next thing for CQC on Windows 10? ellisr63 0 2,008 04-29-2015, 07:04 PM
Last Post: ellisr63
  Windows 2012 Server and Squeezbox Server zra 6 4,157 01-02-2015, 03:37 AM
Last Post: zra
  Windows 8 Pro - Small Form Factor tablet Mark Stega 6 4,567 07-03-2014, 05:51 AM
Last Post: Deephaven

Forum Jump:


Users browsing this thread: 1 Guest(s)