Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
6.5 KiB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML><HEAD>
  3. <META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
  4. <META content="MSHTML 5.00.2920.0" name=GENERATOR></HEAD>
  5. <BODY><B>From:</B> Craig Marl (Meridian Partners Ltd.)
  6. (Exchange)<BR><B>Sent:</B> Wednesday, November 17, 1999 5:28 PM<BR><B>To:</B>
  7. Chris Steck (Exchange); Weiru Cai (Exchange); Henry Lee (Exchange); Alex
  8. Armanasu (Exchange); Michele Freed (Exchange); Murthy Srinivas
  9. (Exchange)<BR><B>Subject:</B> steps to create a settings manifest<BR>
  10. <DIV><FONT color=#800000 face=Verdana size=2><SPAN class=718204600-18111999>Ok,
  11. here's the step I took to create the settings manifest for
  12. RAID.</SPAN></FONT></DIV>
  13. <UL>
  14. <LI><FONT color=#800000 face=Verdana size=2><SPAN class=718204600-18111999>run
  15. sysdiff /snap to create a snapshot of the system.</SPAN></FONT>
  16. <LI><FONT color=#800000 face=Verdana size=2><SPAN
  17. class=718204600-18111999>install RAID, set a bunch of
  18. options.</SPAN></FONT><FONT color=#800000><SPAN class=718204600-18111999>
  19. <LI><FONT color=#800000 face=Verdana size=2><SPAN class=718204600-18111999>run
  20. sysdiff /diff to find out what changed.</SPAN></FONT>
  21. <LI><FONT color=#800000 face=Verdana size=2><SPAN class=718204600-18111999>run
  22. sysdiff /dump to get a readable copy of the changes ;o)</SPAN></FONT>
  23. <LI><FONT color=#800000 face=Verdana size=2><SPAN
  24. class=718204600-18111999>trawl through the dump &amp; figure out which changes
  25. are related to RAID.</SPAN></FONT>
  26. <LI><FONT color=#800000 face=Verdana size=2><SPAN
  27. class=718204600-18111999>create a .cmd file to call&nbsp;regtoxml.vbs for each
  28. registry entry I'm interested in, for
  29. <STRONG>example:</STRONG></SPAN></FONT></LI></UL>
  30. <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  31. <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  32. <DIV><FONT color=#000000 face="Courier New" size=2><SPAN
  33. class=718204600-18111999>regtoxml HKLM\SOFTWARE\Classes\.rdb
  34. D:\statemgr\raid\1.xml /s</SPAN></FONT></DIV>
  35. <DIV><FONT color=#000000 face="Courier New" size=2><SPAN
  36. class=718204600-18111999>regtoxml HKLM\SOFTWARE\Classes\.rdq
  37. D:\statemgr\raid\2.xml&nbsp; /s</SPAN></FONT></DIV>
  38. <DIV><FONT color=#000000 face="Courier New" size=2><SPAN
  39. class=718204600-18111999>regtoxml HKLM\SOFTWARE\Classes\.rdt
  40. D:\statemgr\raid\3.xml&nbsp; /s</SPAN></FONT></DIV>
  41. <DIV><FONT color=#000000 face="Courier New" size=2><SPAN
  42. class=718204600-18111999>regtoxml
  43. HKLM\SOFTWARE\Classes\Applications\raid4.exe D:\statemgr\raid\4.xml&nbsp;
  44. /s</SPAN></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE>
  45. <UL>
  46. <LI><FONT color=#800000 face=Verdana size=2><SPAN class=718204600-18111999>run
  47. wsmcomp.vbs with the xml file I want to compile as arg1 and the manifest I
  48. want to create as arg2 example:</SPAN></FONT><FONT color=#800000><SPAN
  49. class=718204600-18111999></SPAN></FONT></LI></UL>
  50. <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  51. <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  52. <DIV><FONT color=#000000 face="Courier New" size=2><SPAN
  53. class=718204600-18111999>wsmcomp 1.xml raidstate
  54. </SPAN></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE>
  55. <UL>
  56. <LI><FONT face=Verdana size=2><SPAN class=718204600-18111999>next, run
  57. wsmcomp.vbs again for each of my xml files, but this time using the -m flag to
  58. merge them into the manifest. example: </SPAN></FONT></LI></UL>
  59. <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  60. <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  61. <DIV><FONT color=#000000 face="Courier New" size=2><SPAN
  62. class=718204600-18111999>wsmcomp 2.xml raidstate -m
  63. -k</SPAN></FONT></DIV><SPAN class=718204600-18111999>
  64. <DIV><FONT color=#000000 face="Courier New" size=2><SPAN
  65. class=718204600-18111999>wsmcomp 3.xml raidstate -m -k</SPAN></FONT></DIV>
  66. <DIV><SPAN class=718204600-18111999>
  67. <DIV><FONT color=#000000 face="Courier New" size=2><SPAN
  68. class=718204600-18111999>wsmcomp 4.xml raidstate -m -k </SPAN></FONT></DIV>
  69. <DIV><FONT color=#000000 face=Verdana size=2><SPAN
  70. class=718204600-18111999>etc.</SPAN></FONT></DIV>
  71. <DIV><SPAN class=718204600-18111999></SPAN>&nbsp;</DIV>
  72. <DIV><FONT face=Verdana size=2><SPAN class=718204600-18111999>the -k flag
  73. tells the tool to keep going even if there are
  74. errors.</SPAN></FONT></DIV></DIV></BLOCKQUOTE></BLOCKQUOTE>
  75. <UL>
  76. <LI><FONT face=Verdana size=2><SPAN class=718204600-18111999>now, to check
  77. that the manifest an read the settings correctly, run the settings tool with
  78. teh manifest as the argument. example:</SPAN></FONT></LI></UL>
  79. <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  80. <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  81. <DIV><FONT color=#000000 face="Courier New" size=2><SPAN
  82. class=718204600-18111999>settings raidstate</SPAN></FONT></DIV>
  83. <DIV><FONT face=Verdana size=2><SPAN
  84. class=718204600-18111999></SPAN></FONT>&nbsp;</DIV>
  85. <DIV><FONT face=Verdana size=2><SPAN class=718204600-18111999>you'll see a
  86. bunch of message boxes with each setting displayed ( you may want to turn
  87. off your speakers&nbsp;if you have them - the beeps will drive you
  88. mad!)</SPAN></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE>
  89. <UL>
  90. <LI><FONT face=Verdana size=2><SPAN class=718204600-18111999>to backup the
  91. settings run settings.vbs with the /a switch and specify the name of the
  92. settings file. example:</SPAN></FONT></LI></UL>
  93. <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  94. <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  95. <DIV><FONT face=Verdana size=2><SPAN class=718204600-18111999>
  96. <DIV><FONT color=#000000 face="Courier New" size=2><SPAN
  97. class=718204600-18111999>settings raidstate /a
  98. raidset.wsb</SPAN></FONT></DIV></SPAN></FONT></DIV>
  99. <DIV>&nbsp;</DIV>
  100. <DIV><FONT face=Verdana size=2><SPAN class=718204600-18111999>Now, copy the
  101. settings file and the compiled manifest to the destination machine, and run
  102. the settings tool again, but with the /r switch</SPAN></FONT></DIV>
  103. <DIV><FONT color=#000000 face=Verdana size=2><SPAN
  104. class=718204600-18111999></SPAN></FONT>&nbsp;</DIV>
  105. <DIV><FONT color=#800000 face=Verdana><SPAN class=718204600-18111999>
  106. <DIV><FONT color=#000000 face="Courier New" size=2><SPAN
  107. class=718204600-18111999>settings raidstate /a /r
  108. raidset.wsb</SPAN></FONT></DIV><FONT size=2><SPAN
  109. class=718204600-18111999></DIV></BLOCKQUOTE></BLOCKQUOTE>
  110. <UL>
  111. <LI><FONT size=2><SPAN class=718204600-18111999>Go check the app to see if the
  112. settings came across OK.</SPAN></FONT></LI></UL>
  113. <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  114. <BLOCKQUOTE style="MARGIN-RIGHT: 0px"></SPAN></FONT>
  115. <DIV>&nbsp;</DIV></SPAN></FONT></SPAN></SPAN></BLOCKQUOTE></BLOCKQUOTE></SPAN></FONT></BODY></HTML>