Covert %username% to hex in logon script
From: Art Vandelay (idozaf_at_gmail.com)
Date: 11/24/04
- Next message: Joe Fawcett: "Re: FileSystemObject and Windows 98"
- Previous message: Al Dunbar [MS-MVP]: "Re: access to user accounts with ADSI"
- Next in thread: name: "Re: Covert %username% to hex in logon script"
- Reply: name: "Re: Covert %username% to hex in logon script"
- Reply: Don Grover: "Re: Covert %username% to hex in logon script"
- Reply: Torgeir Bakken \(MVP\): "Re: Covert %username% to hex in logon script"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Nov 2004 07:06:18 -0000
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: Joe Fawcett: "Re: FileSystemObject and Windows 98"
- Previous message: Al Dunbar [MS-MVP]: "Re: access to user accounts with ADSI"
- Next in thread: name: "Re: Covert %username% to hex in logon script"
- Reply: name: "Re: Covert %username% to hex in logon script"
- Reply: Don Grover: "Re: Covert %username% to hex in logon script"
- Reply: Torgeir Bakken \(MVP\): "Re: Covert %username% to hex in logon script"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|