A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Security and Administration with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Registry Import Question



 
 
Thread Tools Display Modes
  #1  
Old June 11th 07, 07:14 PM posted to microsoft.public.windowsxp.security_admin
booker@mgt
external usenet poster
 
Posts: 4
Default Registry Import Question

Not sure where to start with this queston, but here goes my scenario


I want to import a registry key that will deal with a Microsoft outlook
email profile. When the key is imported, I want it to use environment
variables for the various outlook files and user mailbox location files.


How can I edit a registry file, so that when the user clicks to import it,
it will recognize enviroment variables.

The main variables being %username% and %userprofile%


Ads
  #2  
Old June 11th 07, 09:18 PM posted to microsoft.public.windowsxp.security_admin
booker@mgt
external usenet poster
 
Posts: 4
Default Registry Import Question

Below are the contents of the registry file. Everywhere you see %username%,
I want that t ochange to the logged on user's name.

What is the best way to go about that

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange]

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\024fa8a3cf910f49aef069 14a7dded75]
"001f3001"=hex:4d,00,69,00,63,00,72,00,6f,00,73,00 ,6f,00,66,00,74,00,20,00,45,\
00,78,00,63,00,68,00,61,00,6e,00,67,00,65,00,20,00 ,53,00,65,00,72,00,76,00,\
65,00,72,00,00,00
"001f3d0a"=hex:65,00,6d,00,73,00,75,00,69,00,2e,00 ,64,00,6c,00,6c,00,00,00
"001f3d13"=hex:7b,00,36,00,34,00,38,00,35,00,44,00 ,32,00,36,00,41,00,2d,00,43,\
00,32,00,41,00,43,00,2d,00,31,00,31,00,44,00,31,00 ,2d,00,41,00,44,00,33,00,\
45,00,2d,00,31,00,30,00,41,00,30,00,43,00,39,00,31 ,00,31,00,43,00,39,00,43,\
00,30,00,7d,00,00,00
"001f3d0b"=hex:45,00,4d,00,53,00,43,00,66,00,67,00 ,00,00
"00033009"=hex:02,00,00,00
"101e3d0f"=hex:03,00,00,00,10,00,00,00,1a,00,00,00 ,25,00,00,00,65,6d,73,75,69,\
2e,64,6c,6c,00,65,6d,73,61,62,70,2e,64,6c,6c,00,65 ,6d,73,6d,64,62,2e,64,6c,\
6c,00
"001f3d09"=hex:4d,00,53,00,45,00,4d,00,53,00,0 0,00
"01023d01"=hex:f1,3b,83,05,47,9a,7e,44,87,c6,b7,39 ,d3,86,38,6f
"01023d00"=hex:d9,39,c1,fc,a9,e7,05,47,b7,ea,33,98 ,d5,af,6d,68,40,fc,29,8f,50,\
db,b8,41,8b,53,74,69,3e,c4,c6,6d
"01023d02"=hex:88,f9,13,d5,2e,6b,33,42,9e,ee,e5,76 ,78,28,ba,75,2f,4e,ff,a0,47,\
93,b3,44,9b,54,8a,fa,4c,8b,cd,86
"01023d08"=hex:cb,24,74,f4,f0,a2,32,4a,b6,26,28,54 ,01,94,05,8e
"01023d0d"=hex:13,db,b0,c8,aa,05,10,1a,9b,b0,00,aa ,00,2f,c4,5a


"001e6603"="/o=ExchORG-EXT/ou=Exchange Administrative Group
(RndmSetofLetters)/cn=Recipients/cn=%username%"
"001f3001"=hex:57,00,61,00,73,00,68,00,69,00,6e,00 ,67,00,74,00,6f,00,6e,00,2c,\
00,20,00,42,00,6f,00,6f,00,6b,00,65,00,72,00,00,00
"001e6602"="Exchgservername"
"001e6612"="/o=ExchORG-EXT/ou=Exchange Administrative Group
(RndmSetofLetters)/cn=Configuration/cn=Servers/cn=Exchgservername"

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\2f4effa04793b3449b548a fa4c8bcd86]
"001f3001"=hex:4d,00,69,00,63,00,72,00,6f,00,73,00 ,6f,00,66,00,74,00,20,00,45,\
00,78,00,63,00,68,00,61,00,6e,00,67,00,65,00,20,00 ,54,00,72,00,61,00,6e,00,\
73,00,70,00,6f,00,72,00,74,00,00,00
"001f3006"=hex:4d,00,69,00,63,00,72,00,6f,00,73,00 ,6f,00,66,00,74,00,20,00,45,\
00,78,00,63,00,68,00,61,00,6e,00,67,00,65,00,20,00 ,54,00,72,00,61,00,6e,00,\
73,00,70,00,6f,00,72,00,74,00,00,00
"001f300a"=hex:45,00,4d,00,53,00,4d,00,44,00,42,00 ,2e,00,44,00,4c,00,4c,00,00,\
00
"001f3d13"=hex:7b,00,36,00,34,00,38,00,35,00,44,00 ,32,00,36,00,41,00,2d,00,43,\
00,32,00,41,00,43,00,2d,00,31,00,31,00,44,00,31,00 ,2d,00,41,00,44,00,33,00,\
45,00,2d,00,31,00,30,00,41,00,30,00,43,00,39,00,31 ,00,31,00,43,00,39,00,43,\
00,30,00,7d,00,00,00
"00033e03"=hex:24,00,00,00
"00036609"=hex:00,00,00,00
"01023d0c"=hex:02,4f,a8,a3,cf,91,0f,49,ae,f0,69,14 ,a7,dd,ed,75
"001f3d09"=hex:4d,00,53,00,45,00,4d,00,53,00,0 0,00
"00033009"=hex:00,00,00,00
"001e660b"="/o=ExchORG-EXT/ou=Exchange Administrative Group
(RndmSetofLetters)/cn=Recipients/cn=%username%"
"001e660c"="Exchgservername"
"001f662b"=hex:61,00,65,00,61,00,74,00,6c,00,63,00 ,61,00,6d,00,65,00,78,00,31,\
00,30,00,2e,00,63,00,61,00,6d,00,70,00,75,00,73,00 ,2e,00,67,00,74,00,72,00,\
69,00,2e,00,65,00,78,00,74,00,00,00
"001e6614"="/o=ExchORG-EXT/ou=Exchange Administrative Group
(RndmSetofLetters)/cn=Configuration/cn=Servers/cn=Exchgservername"

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\3517490d76624c419a8286 07e2a54604]
"001f6000"=hex:45,00,78,00,63,00,68,00,61,00,6e,00 ,67,00,65,00,7e,00,37,00,00,\
00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\40fc298f50dbb8418b5374 693ec4c66d]
"001f300a"=hex:45,00,4d,00,53,00,4d,00,44,00,42,00 ,2e,00,44,00,4c,00,4c,00,00,\
00
"001f3d13"=hex:7b,00,36,00,34,00,38,00,35,00,44,00 ,32,00,36,00,41,00,2d,00,43,\
00,32,00,41,00,43,00,2d,00,31,00,31,00,44,00,31,00 ,2d,00,41,00,44,00,33,00,\
45,00,2d,00,31,00,30,00,41,00,30,00,43,00,39,00,31 ,00,31,00,43,00,39,00,43,\
00,30,00,7d,00,00,00
"00033e03"=hex:21,00,00,00
"00033009"=hex:06,10,00,00
"00036609"=hex:0c,00,00,00
"0003660a"=hex:01,00,00,00
"01023414"=hex:54,94,a1,c0,29,7f,10,1b,a5,87,08,00 ,2b,2a,25,17
"001f3001"=hex:4d,00,61,00,69,00,6c,00,62,00,6f,00 ,78,00,20,00,2d,00,20,00,57,\
00,61,00,73,00,68,00,69,00,6e,00,67,00,74,00,6f,00 ,6e,00,2c,00,20,00,42,00,\
6f,00,6f,00,6b,00,65,00,72,00,00,00
"001f3006"=hex:4d,00,69,00,63,00,72,00,6f,00,73,00 ,6f,00,66,00,74,00,20,00,45,\
00,78,00,63,00,68,00,61,00,6e,00,67,00,65,00,20,00 ,53,00,65,00,72,00,76,00,\
65,00,72,00,00,00
"01023d0c"=hex:02,4f,a8,a3,cf,91,0f,49,ae,f0,69,14 ,a7,dd,ed,75
"001f3d09"=hex:4d,00,53,00,45,00,4d,00,53,00,0 0,00
"001e660c"="Exchgservername"
"001f662b"=hex:61,00,65,00,61,00,74,00,6c,00,63,00 ,61,00,6d,00,65,00,78,00,31,\
00,30,00,2e,00,63,00,61,00,6d,00,70,00,75,00,73,00 ,2e,00,67,00,74,00,72,00,\
69,00,2e,00,65,00,78,00,74,00,00,00
"001e6614"="/o=ExchORG-EXT/ou=Exchange Administrative Group
(RndmSetofLetters)/cn=Configuration/cn=Servers/cn=Exchgservername"
"001e660b"="/o=ExchORG-EXT/ou=Exchange Administrative Group
(RndmSetofLetters)/cn=Recipients/cn=%username%"
"01020fff"=hex:00,00,00,00,38,a1,bb,10,05,e5,10,1a ,a1,bb,08,00,2b,2a,56,c2,00,\
00,45,4d,53,4d,44,42,2e,44,4c,4c,00,00,00,00,00,00 ,00,00,1b,55,fa,20,aa,66,\
11,cd,9b,c8,00,aa,00,2f,c4,5a,0c,00,00,00,41,45,41 ,54,4c,43,41,4d,45,58,31,\
30,00,2f,6f,3d,47,54,52,49,2d,45,58,54,2f,6f,75,3d ,45,78,63,68,61,6e,67,65,\
20,41,64,6d,69,6e,69,73,74,72,61,74,69,76,65,20,47 ,72,6f,75,70,20,28,46,59,\
44,49,42,4f,48,46,32,33,53,50,44,4c,54,29,2f,63,6e ,3d,52,65,63,69,70,69,65,\
6e,74,73,2f,63,6e,3d,62,77,31,37,31,00,d8,35,21,f3 ,bb,00,00,00,01,00,00,00,\
14,00,00,00,7f,00,00,00,2f,6f,3d,47,54,52,49,2d,45 ,58,54,2f,6f,75,3d,45,78,\
63,68,61,6e,67,65,20,41,64,6d,69,6e,69,73,74,72,61 ,74,69,76,65,20,47,72,6f,\
75,70,20,28,46,59,44,49,42,4f,48,46,32,33,53,50,44 ,4c,54,29,2f,63,6e,3d,43,\
6f,6e,66,69,67,75,72,61,74,69,6f,6e,2f,63,6e,3d,53 ,65,72,76,65,72,73,2f,63,\
6e,3d,41,45,41,54,4c,43,41,4d,45,58,31,30,00,61,00 ,65,00,61,00,74,00,6c,00,\
63,00,61,00,6d,00,65,00,78,00,31,00,30,00,2e,00,63 ,00,61,00,6d,00,70,00,75,\
00,73,00,2e,00,67,00,74,00,72,00,69,00,2e,00,65,00 ,78,00,74,00,00,00,00,00
"01020ff9"=hex:b3,4a,86,88,e1,28,b4,44,87,9b,9c,34 ,ea,73,53,aa
"00036688"=hex:01,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\5acf76a3665511cea39a00 aa004acafa]
"001e6710"=""
"000b6716"=hex:01,00
"000b6717"=hex:00,00
"000b6718"=hex:01,00
"00036719"=hex:00,00,00,00
"000b6729"=hex:01,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\6cef6bcef9d8ea47b40875 ab9c6e22e4]
"001f300a"=hex:63,00,6f,00,6e,00,74,00,61,00,62,00 ,2e,00,64,00,6c,00,6c,00,00,\
00
"001f3d13"=hex:7b,00,36,00,34,00,38,00,35,00,44,00 ,32,00,36,00,36,00,2d,00,43,\
00,32,00,41,00,43,00,2d,00,31,00,31,00,44,00,31,00 ,2d,00,41,00,44,00,33,00,\
45,00,2d,00,31,00,30,00,41,00,30,00,43,00,39,00,31 ,00,31,00,43,00,39,00,43,\
00,30,00,7d,00,00,00
"00033e03"=hex:23,00,00,00
"001f3006"=hex:4f,00,75,00,74,00,6c,00,6f,00,6f,00 ,6b,00,20,00,41,00,64,00,64,\
00,72,00,65,00,73,00,73,00,20,00,42,00,6f,00,6f,00 ,6b,00,00,00
"01023d0c"=hex:ab,1d,fe,e0,50,aa,9c,47,ae,6a,16,f6 ,c5,37,ac,b7
"001f3d09"=hex:43,00,4f,00,4e,00,54,00,41,00,42,00 ,00,00
"001f3001"=hex:4f,00,75,00,74,00,6c,00,6f,00,6f,00 ,6b,00,20,00,41,00,64,00,64,\
00,72,00,65,00,73,00,73,00,20,00,42,00,6f,00,6f,00 ,6b,00,00,00
"00033009"=hex:00,00,00,00
"01026601"=hex:43,4a,38,07,61,ac,38,40,ad,e3,75,a2 ,82,40,83,5e
"11026620"=hex:01,00,00,00,2e,00,00,00,0c,00,00,00 ,00,00,00,00,b3,4a,86,88,e1,\
28,b4,44,87,9b,9c,34,ea,73,53,aa,01,00,f4,81,fd,df ,2a,ba,60,41,98,6a,f7,1b,\
e9,26,3a,b2,00,00,00,f0,27,38,00,00,00,00
"10036621"=hex:0f,01,04,80
"101f6627"=hex:01,00,00,00,08,00,00,00,4d,00,61,00 ,69,00,6c,00,62,00,6f,00,78,\
00,20,00,2d,00,20,00,57,00,61,00,73,00,68,00,69,00 ,6e,00,67,00,74,00,6f,00,\
6e,00,2c,00,20,00,42,00,6f,00,6f,00,6b,00,65,00,72 ,00,00,00
"101f6628"=hex:01,00,00,00,08,00,00,00,43,00,6f,00 ,6e,00,74,00,61,00,63,00,74,\
00,73,00,00,00
"101f6629"=hex:01,00,00,00,08,00,00,00,43,00,6f,00 ,6e,00,74,00,61,00,63,00,74,\
00,73,00,00,00
"10036625"=hex:01,00,00,00
"11026626"=hex:01,00,00,00,5a,01,00,00,0c,00,00,00 ,00,00,00,00,38,a1,bb,10,05,\
e5,10,1a,a1,bb,08,00,2b,2a,56,c2,00,00,45,4d,53,4d ,44,42,2e,44,4c,4c,00,00,\
00,00,00,00,00,00,1b,55,fa,20,aa,66,11,cd,9b,c8,00 ,aa,00,2f,c4,5a,0c,00,00,\
00,41,45,41,54,4c,43,41,4d,45,58,31,30,00,2f,6f,3d ,47,54,52,49,2d,45,58,54,\
2f,6f,75,3d,45,78,63,68,61,6e,67,65,20,41,64,6d,69 ,6e,69,73,74,72,61,74,69,\
76,65,20,47,72,6f,75,70,20,28,46,59,44,49,42,4f,48 ,46,32,33,53,50,44,4c,54,\
29,2f,63,6e,3d,52,65,63,69,70,69,65,6e,74,73,2f,63 ,6e,3d,62,77,31,37,31,00,\
d8,35,21,f3,bb,00,00,00,01,00,00,00,14,00,00,00,7f ,00,00,00,2f,6f,3d,47,54,\
52,49,2d,45,58,54,2f,6f,75,3d,45,78,63,68,61,6e,67 ,65,20,41,64,6d,69,6e,69,\
73,74,72,61,74,69,76,65,20,47,72,6f,75,70,20,28,46 ,59,44,49,42,4f,48,46,32,\
33,53,50,44,4c,54,29,2f,63,6e,3d,43,6f,6e,66,69,67 ,75,72,61,74,69,6f,6e,2f,\
63,6e,3d,53,65,72,76,65,72,73,2f,63,6e,3d,41,45,41 ,54,4c,43,41,4d,45,58,31,\
30,00,61,00,65,00,61,00,74,00,6c,00,63,00,61,00,6d ,00,65,00,78,00,31,00,30,\
00,2e,00,63,00,61,00,6d,00,70,00,75,00,73,00,2e,00 ,67,00,74,00,72,00,69,00,\
2e,00,65,00,78,00,74,00,00,00,00,00,00,00
"101e6622"=hex:01,00,00,00,08,00,00,00,4d,61,69,6c ,62,6f,78,20,2d,20,57,61,73,\
68,69,6e,67,74,6f,6e,2c,20,42,6f,6f,6b,65,72,00
"101e6623"=hex:01,00,00,00,08,00,00,00,43,6f,6e,74 ,61,63,74,73,00
"101e6624"=hex:01,00,00,00,08,00,00,00,43,6f,6e,74 ,61,63,74,73,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\8503020000000000c00000 0000000046]
"0102300b"=hex:a9,6d,f5,4e,98,6e,0d,4a,97,13,3d,b3 ,9c,43,4a,d0

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\88f913d52e6b33429eeee5 767828ba75]
"001f3001"=hex:4d,00,69,00,63,00,72,00,6f,00,73,00 ,6f,00,66,00,74,00,20,00,45,\
00,78,00,63,00,68,00,61,00,6e,00,67,00,65,00,20,00 ,52,00,65,00,6d,00,6f,00,\
74,00,65,00,20,00,54,00,72,00,61,00,6e,00,73,00,70 ,00,6f,00,72,00,74,00,00,\
00
"001f3006"=hex:4d,00,69,00,63,00,72,00,6f,00,73,00 ,6f,00,66,00,74,00,20,00,45,\
00,78,00,63,00,68,00,61,00,6e,00,67,00,65,00,20,00 ,52,00,65,00,6d,00,6f,00,\
74,00,65,00,20,00,54,00,72,00,61,00,6e,00,73,00,70 ,00,6f,00,72,00,74,00,00,\
00
"001f300a"=hex:45,00,4d,00,53,00,55,00,49,00,2e,00 ,44,00,4c,00,4c,00,00,00
"001f3d13"=hex:7b,00,36,00,34,00,38,00,35,00,44,00 ,32,00,36,00,41,00,2d,00,43,\
00,32,00,41,00,43,00,2d,00,31,00,31,00,44,00,31,00 ,2d,00,41,00,44,00,33,00,\
45,00,2d,00,31,00,30,00,41,00,30,00,43,00,39,00,31 ,00,31,00,43,00,39,00,43,\
00,30,00,7d,00,00,00
"00033e03"=hex:24,00,00,00
"00036609"=hex:40,00,00,00
"0003660a"=hex:0a,00,00,00
"01023d0c"=hex:02,4f,a8,a3,cf,91,0f,49,ae,f0,69,14 ,a7,dd,ed,75
"001f3d09"=hex:4d,00,53,00,45,00,4d,00,53,00,0 0,00
"00033009"=hex:00,00,00,00
"001e660b"="/o=ExchORG-EXT/ou=Exchange Administrative Group
(RndmSetofLetters)/cn=Recipients/cn=%username%"
"001e660c"="Exchgservername"
"001f662b"=hex:61,00,65,00,61,00,74,00,6c,00,63,00 ,61,00,6d,00,65,00,78,00,31,\
00,30,00,2e,00,63,00,61,00,6d,00,70,00,75,00,73,00 ,2e,00,67,00,74,00,72,00,\
69,00,2e,00,65,00,78,00,74,00,00,00
"001e6614"="/o=ExchORG-EXT/ou=Exchange Administrative Group
(RndmSetofLetters)/cn=Configuration/cn=Servers/cn=Exchgservername"

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\9207f3e0a3b11019908b08 002b2a56c2]
"01023d01"=hex:6c,ef,6b,ce,f9,d8,ea,47,b4,08,75,ab ,9c,6e,22,e4,f1,3b,83,05,47,\
9a,7e,44,87,c6,b7,39,d3,86,38,6f
"01023d0e"=hex:ab,1d,fe,e0,50,aa,9c,47,ae,6a,16,f6 ,c5,37,ac,b7,02,4f,a8,a3,cf,\
91,0f,49,ae,f0,69,14,a7,dd,ed,75
"01023d00"=hex:d9,39,c1,fc,a9,e7,05,47,b7,ea,33,98 ,d5,af,6d,68,40,fc,29,8f,50,\
db,b8,41,8b,53,74,69,3e,c4,c6,6d
"01023d02"=hex:88,f9,13,d5,2e,6b,33,42,9e,ee,e5,76 ,78,28,ba,75,2f,4e,ff,a0,47,\
93,b3,44,9b,54,8a,fa,4c,8b,cd,86
"01023d08"=hex:cb,24,74,f4,f0,a2,32,4a,b6,26,28,54 ,01,94,05,8e
"11023d05"=hex:02,00,00,00,1e,00,00,00,14,00,00,00 ,5a,00,00,00,34,00,00,00,00,\
00,00,00,dc,a7,40,c8,c0,42,10,1a,b4,b9,08,00,2b,2f ,e1,82,01,00,00,00,00,01,\
00,00,2f,00,00,00,00,00,00,00,fe,42,aa,0a,18,c7,1a ,10,e8,85,0b,65,1c,24,00,\
00,03,00,00,00,03,00,00,00,43,4a,38,07,61,ac,38,40 ,ad,e3,75,a2,82,40,83,5e,\
00,00,00,00,b3,4a,86,88,e1,28,b4,44,87,9b,9c,34,ea ,73,53,aa,01,00,f4,81,fd,\
df,2a,ba,60,41,98,6a,f7,1b,e9,26,3a,b2,00,00,00,f0 ,27,38,00,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\9375CFF0413111d3B88A00 104B2A6676]
"{ED475418-B0D6-11D2-8C3B-00104B2A6676}"=hex:02,00,00,00
"LastChangeVer"=hex:0c,00,00,00,00,00,00,00
"{ED475419-B0D6-11D2-8C3B-00104B2A6676}"=hex:01,00,00,00
"{ED475420-B0D6-11D2-8C3B-00104B2A6676}"=hex:02,00,00,00
"NextAccountID"=dword:00000003

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging
Subsystem\Profiles\Exchange\9375CFF0413111d3B88A00 104B2A6676\00000001]
"clsid"="{ED475414-B0D6-11D2-8C3B-00104B2A6676}"
"Mini UID"=dword:7c81368c
"Service Name"=hex:43,00,4f,00,4e,00,54,00,41,00,42,00,00,0 0
"Service UID"=hex:ab,1d,fe,e0,50,aa,9c,47,ae,6a,16,f6,c5,37 ,ac,b7
"MAPI Provider"=dword:00000002
"Account
Name"=hex:4f,00,75,00,74,00,6c,00,6f,00,6f,00,6b,0 0,20,00,41,00,64,00,\
64,00,72,00,65,00,73,00,73,00,20,00,42,00,6f,00,6f ,00,6b,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging
Subsystem\Profiles\Exchange\9375CFF0413111d3B88A00 104B2A6676\00000002]
"clsid"="{ED475414-B0D6-11D2-8C3B-00104B2A6676}"
"Mini UID"=dword:fc047238
"Service Name"=hex:4d,00,53,00,45,00,4d,00,53,00,00,00
"Service UID"=hex:02,4f,a8,a3,cf,91,0f,49,ae,f0,69,14,a7,dd ,ed,75
"MAPI Provider"=dword:00000005
"Identity
Eid"=hex:00,00,00,00,dc,a7,40,c8,c0,42,10,1a,b4,b9 ,08,00,2b,2f,e1,82,\
01,00,00,00,00,00,00,00,2f,4f,3d,47,54,52,49,2d,45 ,58,54,2f,4f,55,3d,45,58,\
43,48,41,4e,47,45,20,41,44,4d,49,4e,49,53,54,52,41 ,54,49,56,45,20,47,52,4f,\
55,50,20,28,46,59,44,49,42,4f,48,46,32,33,53,50,44 ,4c,54,29,2f,43,4e,3d,52,\
45,43,49,50,49,45,4e,54,53,2f,43,4e,3d,42,57,31,37 ,31,00
"XP Provider
UID"=hex:88,f9,13,d5,2e,6b,33,42,9e,ee,e5,76,78,28 ,ba,75,2f,4e,ff,\
a0,47,93,b3,44,9b,54,8a,fa,4c,8b,cd,86
"Account
Name"=hex:4d,00,69,00,63,00,72,00,6f,00,73,00,6f,0 0,66,00,74,00,20,00,\
45,00,78,00,63,00,68,00,61,00,6e,00,67,00,65,00,20 ,00,53,00,65,00,72,00,76,\
00,65,00,72,00,00,00
"XP Status"=dword:00000001
"XP Capabilities"=dword:00000002

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\ab1dfee050aa9c47ae6a16 f6c537acb7]
"001f3d0a"=hex:63,00,6f,00,6e,00,74,00,61,00,62,00 ,2e,00,64,00,6c,00,6c,00,00,\
00
"001f3d13"=hex:7b,00,36,00,34,00,38,00,35,00,44,00 ,32,00,36,00,36,00,2d,00,43,\
00,32,00,41,00,43,00,2d,00,31,00,31,00,44,00,31,00 ,2d,00,41,00,44,00,33,00,\
45,00,2d,00,31,00,30,00,41,00,30,00,43,00,39,00,31 ,00,31,00,43,00,39,00,43,\
00,30,00,7d,00,00,00
"101e3d0f"=hex:01,00,00,00,08,00,00,00,63,6f,6e,74 ,61,62,2e,64,6c,6c,00
"001f3d0b"=hex:53,00,65,00,72,00,76,00,69,00,63,00 ,65,00,45,00,6e,00,74,00,72,\
00,79,00,00,00
"00033009"=hex:22,00,00,00
"001f3d09"=hex:43,00,4f,00,4e,00,54,00,41,00,42,00 ,00,00
"001f3001"=hex:4f,00,75,00,74,00,6c,00,6f,00,6f,00 ,6b,00,20,00,41,00,64,00,64,\
00,72,00,65,00,73,00,73,00,20,00,42,00,6f,00,6f,00 ,6b,00,00,00
"01023d01"=hex:6c,ef,6b,ce,f9,d8,ea,47,b4,08,75,ab ,9c,6e,22,e4

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\cb2474f4f0a2324ab62628 540194058e]
"001f3001"=hex:4d,00,53,00,20,00,45,00,78,00,63,00 ,68,00,61,00,6e,00,67,00,65,\
00,20,00,48,00,6f,00,6f,00,6b,00,00,00
"001f3006"=hex:4d,00,53,00,20,00,45,00,78,00,63,00 ,68,00,61,00,6e,00,67,00,65,\
00,20,00,48,00,6f,00,6f,00,6b,00,00,00
"001f300a"=hex:45,00,4d,00,53,00,4d,00,44,00,42,00 ,2e,00,44,00,4c,00,4c,00,00,\
00
"001f3d13"=hex:7b,00,36,00,34,00,38,00,35,00,44,00 ,32,00,36,00,41,00,2d,00,43,\
00,32,00,41,00,43,00,2d,00,31,00,31,00,44,00,31,00 ,2d,00,41,00,44,00,33,00,\
45,00,2d,00,31,00,30,00,41,00,30,00,43,00,39,00,31 ,00,31,00,43,00,39,00,43,\
00,30,00,7d,00,00,00
"00033e03"=hex:28,00,00,00
"00033009"=hex:00,02,00,00
"01023d0c"=hex:02,4f,a8,a3,cf,91,0f,49,ae,f0,69,14 ,a7,dd,ed,75
"001f3d09"=hex:4d,00,53,00,45,00,4d,00,53,00,0 0,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\d939c1fca9e70547b7ea33 98d5af6d68]
"00033e03"=hex:21,00,00,00
"001f300a"=hex:45,00,4d,00,53,00,4d,00,44,00,42,00 ,2e,00,44,00,4c,00,4c,00,00,\
00
"001f3d13"=hex:7b,00,36,00,34,00,38,00,35,00,44,00 ,32,00,36,00,41,00,2d,00,43,\
00,32,00,41,00,43,00,2d,00,31,00,31,00,44,00,31,00 ,2d,00,41,00,44,00,33,00,\
45,00,2d,00,31,00,30,00,41,00,30,00,43,00,39,00,31 ,00,31,00,43,00,39,00,43,\
00,30,00,7d,00,00,00
"00033009"=hex:40,00,00,00
"00036609"=hex:06,00,00,00
"0003660a"=hex:03,00,00,00
"01023414"=hex:78,b2,fa,70,af,f7,11,cd,9b,c8,00,aa ,00,2f,c4,5a
"001f3001"=hex:50,00,75,00,62,00,6c,00,69,00,63,00 ,20,00,46,00,6f,00,6c,00,64,\
00,65,00,72,00,73,00,00,00
"001f3006"=hex:4d,00,69,00,63,00,72,00,6f,00,73,00 ,6f,00,66,00,74,00,20,00,45,\
00,78,00,63,00,68,00,61,00,6e,00,67,00,65,00,20,00 ,53,00,65,00,72,00,76,00,\
65,00,72,00,00,00
"01023d0c"=hex:02,4f,a8,a3,cf,91,0f,49,ae,f0,69,14 ,a7,dd,ed,75
"001f3d09"=hex:4d,00,53,00,45,00,4d,00,53,00,0 0,00
"001e660c"="Exchgservername"
"001f662b"=hex:61,00,65,00,61,00,74,00,6c,00,63,00 ,61,00,6d,00,65,00,78,00,31,\
00,30,00,2e,00,63,00,61,00,6d,00,70,00,75,00,73,00 ,2e,00,67,00,74,00,72,00,\
69,00,2e,00,65,00,78,00,74,00,00,00
"001e6614"="/o=ExchORG-EXT/ou=Exchange Administrative Group
(RndmSetofLetters)/cn=Configuration/cn=Servers/cn=Exchgservername"
"01020fff"=hex:00,00,00,00,38,a1,bb,10,05,e5,10,1a ,a1,bb,08,00,2b,2a,56,c2,00,\
00,45,4d,53,4d,44,42,2e,44,4c,4c,00,00,00,00,00,00 ,00,00,1c,83,02,10,aa,66,\
11,cd,9b,c8,00,aa,00,2f,c4,5a,06,00,00,00,41,45,41 ,54,4c,43,41,4d,45,58,31,\
30,00,d8,35,21,f3,bb,00,00,00,01,00,00,00,14,00,00 ,00,7f,00,00,00,2f,6f,3d,\
47,54,52,49,2d,45,58,54,2f,6f,75,3d,45,78,63,68,61 ,6e,67,65,20,41,64,6d,69,\
6e,69,73,74,72,61,74,69,76,65,20,47,72,6f,75,70,20 ,28,46,59,44,49,42,4f,48,\
46,32,33,53,50,44,4c,54,29,2f,63,6e,3d,43,6f,6e,66 ,69,67,75,72,61,74,69,6f,\
6e,2f,63,6e,3d,53,65,72,76,65,72,73,2f,63,6e,3d,41 ,45,41,54,4c,43,41,4d,45,\
58,31,30,00,61,00,65,00,61,00,74,00,6c,00,63,00,61 ,00,6d,00,65,00,78,00,31,\
00,30,00,2e,00,63,00,61,00,6d,00,70,00,75,00,73,00 ,2e,00,67,00,74,00,72,00,\
69,00,2e,00,65,00,78,00,74,00,00,00,00,00
"01020ff9"=hex:1a,44,73,90,aa,66,11,cd,9b,c8,00,aa ,00,2f,c4,5a
"00036688"=hex:01,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\dca740c8c042101ab4b908 002b2fe182]
"001f662a"=hex:61,00,65,00,61,00,74,00,6c,00,63,00 ,61,00,6d,00,65,00,78,00,31,\
00,30,00,2e,00,63,00,61,00,6d,00,70,00,75,00,73,00 ,2e,00,67,00,74,00,72,00,\
69,00,2e,00,65,00,78,00,74,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\f13b8305479a7e4487c6b7 39d386386f]
"001f3001"=hex:4d,00,69,00,63,00,72,00,6f,00,73,00 ,6f,00,66,00,74,00,20,00,45,\
00,78,00,63,00,68,00,61,00,6e,00,67,00,65,00,20,00 ,44,00,69,00,72,00,65,00,\
63,00,74,00,6f,00,72,00,79,00,20,00,53,00,65,00,72 ,00,76,00,69,00,63,00,65,\
00,00,00
"001f3006"=hex:4d,00,69,00,63,00,72,00,6f,00,73,00 ,6f,00,66,00,74,00,20,00,45,\
00,78,00,63,00,68,00,61,00,6e,00,67,00,65,00,20,00 ,44,00,69,00,72,00,65,00,\
63,00,74,00,6f,00,72,00,79,00,20,00,53,00,65,00,72 ,00,76,00,69,00,63,00,65,\
00,00,00
"001f300a"=hex:45,00,4d,00,53,00,41,00,42,00,50,00 ,2e,00,44,00,4c,00,4c,00,00,\
00
"001f3d13"=hex:7b,00,36,00,34,00,38,00,35,00,44,00 ,32,00,36,00,41,00,2d,00,43,\
00,32,00,41,00,43,00,2d,00,31,00,31,00,44,00,31,00 ,2d,00,41,00,44,00,33,00,\
45,00,2d,00,31,00,30,00,41,00,30,00,43,00,39,00,31 ,00,31,00,43,00,39,00,43,\
00,30,00,7d,00,00,00
"00033e03"=hex:23,00,00,00
"01023d0c"=hex:02,4f,a8,a3,cf,91,0f,49,ae,f0,69,14 ,a7,dd,ed,75
"001f3d09"=hex:4d,00,53,00,45,00,4d,00,53,00,0 0,00
"00033009"=hex:00,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\Exchange\f86ed2903a4a11cfb57e52 4153480001]


  #3  
Old June 12th 07, 10:32 PM posted to microsoft.public.windowsxp.security_admin
John Hensley
external usenet poster
 
Posts: 49
Default Registry Import Question

The registry does not support environment variable expansion in key names.

You can do this though if you use a standard windows .INF file and batch
file to do the registry update. Your .INF file would contain a
[DefaultInstall] section with an AddReg= line that specifies a section
containing the registry update information. At the end of the .INF file you
would have an empty [strings] section.

The batch file would copy your .INF file to a new temp filename and then
append the correct replacement strings using an echo command and then you
would use rundll32 to make the registry changes using the temp .INF file.

copy Template.inf Tmp.inf
echo username="%USERNAME%" Tmp.inf
echo username="%USERPROFILE%" Tmp.inf
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 .\Tmp.inf
del Tmp.inf

--
John Hensley
www.resqware.com


"booker@mgt" wrote:

Not sure where to start with this queston, but here goes my scenario


I want to import a registry key that will deal with a Microsoft outlook
email profile. When the key is imported, I want it to use environment
variables for the various outlook files and user mailbox location files.


How can I edit a registry file, so that when the user clicks to import it,
it will recognize enviroment variables.

The main variables being %username% and %userprofile%


  #4  
Old June 13th 07, 02:26 PM posted to microsoft.public.windowsxp.security_admin
John Hensley
external usenet poster
 
Posts: 49
Default Registry Import Question

The second echo line should have been:

echo userprofile="%USERPROFILE%" Tmp.inf

--
John Hensley
www.resqware.com


"John Hensley" wrote:

The registry does not support environment variable expansion in key names.

You can do this though if you use a standard windows .INF file and batch
file to do the registry update. Your .INF file would contain a
[DefaultInstall] section with an AddReg= line that specifies a section
containing the registry update information. At the end of the .INF file you
would have an empty [strings] section.

The batch file would copy your .INF file to a new temp filename and then
append the correct replacement strings using an echo command and then you
would use rundll32 to make the registry changes using the temp .INF file.

copy Template.inf Tmp.inf
echo username="%USERNAME%" Tmp.inf
echo username="%USERPROFILE%" Tmp.inf
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 .\Tmp.inf
del Tmp.inf

--
John Hensley
www.resqware.com


"booker@mgt" wrote:

Not sure where to start with this queston, but here goes my scenario


I want to import a registry key that will deal with a Microsoft outlook
email profile. When the key is imported, I want it to use environment
variables for the various outlook files and user mailbox location files.


How can I edit a registry file, so that when the user clicks to import it,
it will recognize enviroment variables.

The main variables being %username% and %userprofile%


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 12:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.