Jump to content











Photo
- - - - -

Is there a way to switch to another user directly?


  • Please log in to reply
70 replies to this topic

#1 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 26 August 2011 - 11:17 AM

Is there a way to switch to another user directly?

So far the best i could find on the net is, to automate the switching to the logon screen. But then one has to manually click on the account, one wants to log in.

:cheers:

#2 ludovici

ludovici

    Silver Member

  • .script developer
  • 610 posts
  • Location:France
  •  
    France

Posted 26 August 2011 - 11:53 AM

Good Question, Medevil :good:
I can't find the solution...
http://www.sevenforu...ly-startup.html

#3 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 26 August 2011 - 12:04 PM

Is there a way to switch to another user directly?

So far the best i could find on the net is, to automate the switching to the logon screen. But then one has to manually click on the account, one wants to log in.

:cheers:


NOT actually what you asked for, but maybe something like SUPSU (which I believe DOES NOT run on 7) could do:
http://www.stefan-ku...id=62&Itemid=73



Is there "normal" SU.EXE on 7?

Would killing the shell and re-start it with RUNAS do?

:unsure:

:cheers:
Wonko

#4 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 26 August 2011 - 12:04 PM

So far i have only found one commercial software, which should be able to do it.
Not really suited for use in our projects.

:cheers:

#5 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 26 August 2011 - 12:17 PM

Would killing the shell and re-start it with RUNAS do?

Nope!
The problem is not actually, loging into another account, because we want to log into another account.

The problem is, we need to run a full login process, to get a few things working.
The only way we have found, so far, is to switch to another user.

In theory loging out and back into the system account, would be the possible best solution. But one can't logout of the system account nor log back in, once on the logon screen.

:cheers:

#6 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 26 August 2011 - 12:23 PM

@Wonko
PS: The SU programs allow one to run a program with the credentials of another user, not to fully switch users like we need to.

:cheers:

#7 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 26 August 2011 - 12:29 PM

@Wonko
PS: The SU programs allow one to run a program with the credentials of another user, not to fully switch users like we need to.


Yep :), that's why I asked, as I was not sure about what you wanted/needed to do (mainly because you didn't explain initiially what the heck you were up to :whistling:, and you are not yet doing it fully IMHO).

:cheers:
Wonko

#8 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 26 August 2011 - 12:36 PM

Yep :), that's why I asked, as I was not sure about what you wanted/needed to do
(mainly because you didn't explain initiially what the heck you were up to :whistling:,

Sure, that's why i explained in more detail, what exactly we need to do.

and you are not yet doing it fully IMHO).

I didn't?
What is unclear? What would you like to know?

:cheers:

#9 ludovici

ludovici

    Silver Member

  • .script developer
  • 610 posts
  • Location:France
  •  
    France

Posted 26 August 2011 - 01:41 PM

we can maybe use ALA autologon administrator in command line
with logon expert administrator

Autologon expert can autologon admin account, but of first sytem account...
Ala work also with command line

Spoiler


#10 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 26 August 2011 - 02:58 PM

Autologon is another thing as I see it, but just in case:
http://technet.micro...ernals/bb963905

http://news.softpedi...gon-37745.shtml
(the two known alternatives).

:cheers:
Wonko

#11 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 26 August 2011 - 03:45 PM

Hmm, you know that autologon will not work for switching users?
If it could work. nobody would ever be able to login into any other account, but the one set up for autologon. One would click on 'log off' or 'switch user' and would get immediately get loged back into the account.

:cheers:

#12 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 26 August 2011 - 05:25 PM

Just to help me understand more - WHY do you (in a PE environment) need to login as a different user?

#13 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 26 August 2011 - 06:38 PM

Like i tryed to explain. It would be best to log out of the system account and back in. But that's not possible. So we do the next best thing. Switching from system account to admin account and administer then some voodoo.

After that, PE behaves more like a real Win7 (unless there is a dll or a registry entry missing, for the specific feature you wanna use). A very, very clever idea from dera!

Right now, ludovici and i are looking into automating the switching operation. At the momnet, it's still to easy, to make a mistake and log the PE up for good.

:cheers:

#14 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 26 August 2011 - 07:03 PM

OK...You want to be logged into the "administrator" account, and not the "system" (default PE) account so it acts more like "real" windows...Do you know if you have to log in FIRST with the default account before you log in with the administrator account, or could you log directly into the administrator account? Could you "script" the selection of the "switch user" function so that it automates the process? Still might take the time necessary to "login", switch, and login again, but that might be an alternative.

Good Luck - not that critical to me, since I am happy to let a PE be a liimited environment... :smart: but learning is always a good thing!

#15 ludovici

ludovici

    Silver Member

  • .script developer
  • 610 posts
  • Location:France
  •  
    France

Posted 26 August 2011 - 07:19 PM

Admin user can:
To get aero transparency
To get shutdown, reboot without patched files
Install some Program where admin mode is mandatory

I can create a script to automating process of switching account; but after the winpe boot process logged in system user (add autorun)
And admin Will be workgroup; maybe can we attribuate a password for a authentification access (clearlock but real Windows 7 logon)...

#16 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 26 August 2011 - 08:34 PM

@sbaeder
This has nothing to do (yet) with enduser PE. This is development.
It may or may not find it's way, to a PE near you. ;)

:cheers:

#17 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 26 August 2011 - 10:38 PM

@sbaeder
This has nothing to do (yet) with enduser PE. This is development.
It may or may not find it's way, to a PE near you. ;)

:cheers:

YES, I totally understand that!!

#18 vvurat

vvurat

    Frequent Member

  • Advanced user
  • 323 posts

Posted 26 August 2011 - 11:12 PM

If you use Ux.exe without patched winlogon.exe, winpe directly boots to switch user screen without booting system user account. Than you just need to click on administrator and login. But before fall into switch user screen it gives a memory error, just click ok. I asked JFX how can i fix Ux.exe but he advices to work on turn winpe to normal windows boot (does not knows exact keys just have some ideas that i have tired before)

For more info about UX.exe inside is here. There is also some cpp code. If anybody knows to get rid of memory error he is wellcome.

http://bbs.wuyou.com...92&extra=page=1

#19 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 26 August 2011 - 11:37 PM

With that, autologon could be used to boot straight into the desktop.

Thanks vvurat!

btw. Are you able to install drivers in admin account, just like that?

:cheers:

#20 vvurat

vvurat

    Frequent Member

  • Advanced user
  • 323 posts

Posted 27 August 2011 - 07:42 AM

No. But i investigated a little. When we try to install a driver system adds new information to driver database. As i see admin and users doesn't have write permission to write the files "drvindex.dat, infpub.dat, infstor.dat, infstrng.dat" under "System32\DriverStore" folder. My guess to remove all readonly attributes and to give administrator and users to all access premissions to driverstore folder and files under it should solve the "access denied" error when trying to install a driver.

If you delete that 4 files you can install drivers as administrator. I tested. They will recreated when a driver installed but the same problem occours again.

#21 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 27 August 2011 - 09:13 AM

Could this be of use? :unsure:

http://www.softtreet.../archive/51.htm


:cheers:
Wonko

#22 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 27 August 2011 - 11:38 AM

@vvurat
The problem seems not to be the write permissions directly. I already reset all admin permissions for files and registry to match the ones of the system account. Still it errors out.


:cheers:

#23 vvurat

vvurat

    Frequent Member

  • Advanced user
  • 323 posts

Posted 27 August 2011 - 12:10 PM

Because the changes you made were not permanant. The problem is exactly that.

#24 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 27 August 2011 - 12:11 PM

Ok, i know now what the problem is. Kinda!

I can change permissions while loged in as system. Everythings seems to work fine, however if i close the dialog and retest, they havn't changed.

Why are all files in ro maode anyway?

:cheers:

#25 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 27 August 2011 - 12:31 PM

Ooops, cross posting.
Did some more digging and attrib shows a completely different picture.
There is no read only attribute set, yet access to the files is denied.

Is UAC operational in Win7PESE?

:cheers:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users