Re: Covert %username% to hex in logon script
From: Don Grover (dgrover_at_assoft.com.au)
Date: 11/24/04
- Next message: Bo Rong: "Re: monitor a group events"
- Previous message: name: "Re: monitor a group events"
- In reply to: Art Vandelay: "Covert %username% to hex in logon script"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Covert %username% to hex in logon script"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Nov 2004 20:40:20 +1100
Convert username to Unicode first.
"Art Vandelay" <idozaf@gmail.com> wrote in message
news:30iq7cF30o3foU1@uni-berlin.de...
> Hi there,
> At a school we need to alter the registered User Information for the
> Office suite during logon. We want the %username% value to be imported
> into the following key:
> HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\common\UserInfo altering
> the REG_BINARY UserName
>
> Unfortunately the conversion isn't straight hex either, but as with all
> REG_BINARYs there is a 00 between every character. So for example the word
> "Example" is not imported as
> 45 78 61 6D 70 6C 65
>
> but as:
>
> 45 00 78 00 61 00 6D 00 70 00 6C 00 65 00 00 00
>
> Any idea how we can go about doing this?
> Thanks.
> Art
>
- Next message: Bo Rong: "Re: monitor a group events"
- Previous message: name: "Re: monitor a group events"
- In reply to: Art Vandelay: "Covert %username% to hex in logon script"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Covert %username% to hex in logon script"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|