Re: How to get the User Name?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: KM (konstmor_at_nospam_yahoo.com)
Date: 01/12/05


Date: Wed, 12 Jan 2005 11:15:34 -0800

Bernhard,

Useful utility.
Thanks for the link.

-- 
 Regards,
        KM, BSquare Corp.
> Hi KM,
>
> there is also a freeware runas add-on that allows to supply
> the password in a script:
> http://www.commandline.co.uk/sanur/
>
> Regards,
> Bernhard
>
> KM wrote:
> > Nick,
> >
> > If you're referring to runas command, how do you supply the used
> account password?
> >
> > Some other tools (freeware/shareware) may be used but from MS you
> have only API:
> >
> http://groups-beta.google.com/group/microsoft.public.windowsxp.embedded/browse_frm/thread/bf0db3509ec504fc#cb55c9de50dae623
> >
> > KM
> >
> >
> > > hi
> > >
> > >    it seems that all logon and logoff actions are just about to
> upgrade
> > > some software/settings, i think runas service is a good choice for
> your
> > > purpose, no matter who is the current user, just do what you want
> to do
> > > running as administrators group member. and we've been taking
> advatage of it
> > > for quite a while.
> > >
> > > nick
> > >
> > > <kiros@termtek.com.tw> wrote in message
> > > news:1105433218.016434.235520@f14g2000cwb.googlegroups.com...
> > >> Hi all
> > >> I build the XPE image with two accounts.
> > >> One is "Adminsitrator" and the other is "User".
> > >> Default logon is "User".
> > >> Now i want to setup or upgrade my application automatically.
> > >> So i design some simple rules to do that.
> > >>
> > >> As below:
> > >> 1.Default logon is "User" and check if you want to update or not.
> > >>
> > >> 2.If "Yes", i will reboot and logon with "Administrator".
> > >> And when you finish that, it will reboot again and logon
> > >> with "User" automatically.
> > >> PS: I can set the registry key of "DefaultUserName" to autologon
> > >> with "Administrator" or "User".
> > >>
> > >> 3.If "No", nothing to do.
> > >>
> > >> It can be done and works fine.
> > >> But now i have some problem. If i have 10 machines with XPE.
> > >> The "User" name is different with each machine.
> > >> For example, "User1", "User2", "User3",...
> > >> The "Administrator" name is the same with each machine.
> > >> So when i upgrade finished, i must logon with "User" again.
> > >> But now the "User" name of each machine is different.
> > >> So i want to know the "User" name with each machine and set the
> > >> registry key to autologn.
> > >>
> > >> How do i get the "User" name?
> > >>
> > >> Thanks
> > >> Kiros
> > >>
> > >
> > >
>


Relevant Pages

  • Re: Automatically login a user from at
    ... RUNAS /? ... Well, given that, as an account admin, I am not authorized to logon as users ... I don't get where the batch file is actually running. ... Are the three remote computers workstations they will logon at, ...
    (microsoft.public.scripting.vbscript)
  • Re: Automatically login a user from at
    ... RUNAS /? ... Well, given that, as an account admin, I am not authorized to logon as users ... I don't get where the batch file is actually running. ... Are the three remote computers workstations they will logon at, ...
    (microsoft.public.scripting.wsh)
  • Re: how to get user logged on to of a remote machine.
    ... Even without Terminal Server / FUS, functionality such as runas could allow multiple users logged on to the same physical machine and interactive session. ... simple logon situation that the one client logon the computer within ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Log on Locally
    ... That's what I Thought, I can't access it mmc, even via the RUNAS: Logon ... > snapin to reset the policy. ... I didn't check very well and I add Domain admins to ...
    (microsoft.public.win2000.security)
  • Logon as different user, without needing a password?
    ... I often need to logon to various desktops ... as the user who I am helping. ... For various reasons, it would be ... I know of various RunAs or SU tools (like RunAs, ...
    (microsoft.public.windowsxp.security_admin)