Re: How to get the User Name?
From: KM (konstmor_at_nospam_yahoo.com)
Date: 01/12/05
- Next message: KM: "Re: Remote boot server feedback"
- Previous message: Desi: "Remote boot server feedback"
- In reply to: Bernhard: "Re: How to get the User Name?"
- Next in thread: Nick: "Re: How to get the User Name?"
- Reply: Nick: "Re: How to get the User Name?"
- Messages sorted by: [ date ] [ thread ]
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
> > >>
> > >
> > >
>
- Next message: KM: "Re: Remote boot server feedback"
- Previous message: Desi: "Remote boot server feedback"
- In reply to: Bernhard: "Re: How to get the User Name?"
- Next in thread: Nick: "Re: How to get the User Name?"
- Reply: Nick: "Re: How to get the User Name?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|