Leaked source code of windows server 2003
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.

601 lines
16 KiB

  1. Document Type: IPF
  2. item: Global
  3. Version=6.0
  4. Flags=00000100
  5. Languages=0 0 65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  6. LanguagesList=English
  7. Default Language=2
  8. Japanese Font Name=MS Gothic
  9. Japanese Font Size=10
  10. Start Gradient=0 0 255
  11. End Gradient=0 0 0
  12. Windows Flags=00000000000000010010110000011000
  13. Message Font=MS Sans Serif
  14. Font Size=8
  15. Disk Filename=SETUP
  16. Patch Flags=0000000000000001
  17. Patch Threshold=85
  18. Patch Memory=4000
  19. FTP Cluster Size=20
  20. end
  21. item: Remark
  22. Text=Microsoft provides script, macro and other code examples for illustration
  23. end
  24. item: Remark
  25. Text=only, without warranty either expressed or implied, including but not
  26. end
  27. item: Remark
  28. Text=limited to the implied warranties of merchantability and/or fitness for a
  29. end
  30. item: Remark
  31. Text=particular purpose. This script is provided 'as is' and Microsoft does not
  32. end
  33. item: Remark
  34. Text=guarantee that the following script, macro or code can be used in all
  35. end
  36. item: Remark
  37. Text=situations. Microsoft does not support modifications of the script, macro
  38. end
  39. item: Remark
  40. Text=or code to suit customer requirements for a particular purpose.
  41. end
  42. item: Remark
  43. end
  44. item: Remark
  45. Text=While Microsoft support engineers can help explain the functionality of a
  46. end
  47. item: Remark
  48. Text=particular script function, macro or code example, they will not modify these
  49. end
  50. item: Remark
  51. Text=examples to provide added functionality, nor will they help you construct
  52. end
  53. item: Remark
  54. Text=scripts, macros or code to meet your specific needs. If you have
  55. end
  56. item: Remark
  57. Text=limited programming experience, you may want to consult one of the Microsoft
  58. end
  59. item: Remark
  60. Text=Solution Providers. Solution Providers offer a wide range of fee-based services,
  61. end
  62. item: Remark
  63. Text=including creating custom scripts. For more information about Microsoft Solution
  64. end
  65. item: Remark
  66. Text=Providers, call Microsoft Customer Information Service at (800) 426-9400.
  67. end
  68. item: Remark
  69. Text=THIS IS WERE THE SCRIPT ACTUALLY STARTS
  70. end
  71. item: Check Disk Space
  72. end
  73. item: Remark
  74. end
  75. item: Remark
  76. Text=****************ADD IN DOMAIN SPECIFIC INFORMATION HERE*******************************
  77. end
  78. item: Remark
  79. end
  80. item: Remark
  81. Text=****************SET DOMAIN ADMIN ACCOUNT NAME HERE**************************************
  82. end
  83. item: Set Variable
  84. Variable=SVCACCT
  85. Value=TestAdmin
  86. end
  87. item: Remark
  88. Text=****************SET DOMAIN ADMIN'S ACCOUNT PASSWORD*********************************************
  89. end
  90. item: Set Variable
  91. Variable=SVCACCTPW
  92. Value=Test
  93. end
  94. item: Remark
  95. Text=****************SET DOMAIN NAME HERE***********************************************************
  96. end
  97. item: Set Variable
  98. Variable=DOMAIN
  99. Value=TOYLAND
  100. end
  101. item: Remark
  102. Text=*************************************************************************************************************
  103. end
  104. item: Remark
  105. end
  106. item: Open/Close INSTALL.LOG
  107. end
  108. item: Get Registry Key Value
  109. Variable=IENT_PHASE
  110. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  111. Value Name=IENT_PHASE
  112. Flags=00000100
  113. end
  114. item: Remark
  115. end
  116. item: If/While Statement
  117. Variable=IENT_PHASE
  118. end
  119. item: Remark
  120. Text= THIS PHASE IS RUN FIRST IN THE CONTEXT OF A DOMAIN ADMIN ACCT
  121. end
  122. item: Add Text to INSTALL.LOG
  123. Text=This is where the script begins. Phase=Null
  124. end
  125. item: Add Text to INSTALL.LOG
  126. Text=***************************************************************************************************************
  127. end
  128. item: Add Text to INSTALL.LOG
  129. Text=***************************************************************************************************************
  130. end
  131. item: If/While Statement
  132. Variable=INST
  133. Value=:
  134. Flags=00000010
  135. end
  136. item: Remark
  137. Text=A mapped drive was detected, assuming that we're running on SMS 1.2
  138. end
  139. item: Remark
  140. Text=We will get the path to the source from the PCMUNC Variable
  141. end
  142. item: Get Environment Variable
  143. Variable=IENT_PATH
  144. Environment=PCMUNC
  145. end
  146. item: Add Text to INSTALL.LOG
  147. Text=PHASE=Null %TIME% Mapped Drive source detected, getting install path from PCMUNC="%IENT_PATH%
  148. end
  149. item: Else Statement
  150. end
  151. item: Remark
  152. Text=A mapped drive was not detected, assuming that we're running on SMS 2.0
  153. end
  154. item: Set Variable
  155. Variable=IENT_PATH
  156. Value=%INST%
  157. end
  158. item: Add Text to INSTALL.LOG
  159. Text=PHASE=Null %TIME% UNC Source detected, Path to source from INST="%IENT_PATH%"
  160. end
  161. item: End Block
  162. end
  163. item: Get Environment Variable
  164. Variable=WINDIR
  165. Environment=windir
  166. end
  167. item: Copy Local File
  168. Source=%INST%\shutdown.exe
  169. Destination=%SYS32%\shutdown.exe
  170. Flags=0000000001100010
  171. end
  172. item: Copy Local File
  173. Source=%INST%\IESetup.exe
  174. Destination=%SYS32%\IESetup.exe
  175. Flags=0000000001100010
  176. end
  177. item: Add Text to INSTALL.LOG
  178. Text=PHASE=Null %TIME% Checking for %SYS32%\Shutdown.exe, if absent we'll abort before setting automated install settings
  179. end
  180. item: Check if File/Dir Exists
  181. Pathname=%SYS32%\shutdown.exe
  182. Flags=00000011
  183. end
  184. item: Add Text to INSTALL.LOG
  185. Text=PHASE=Null %TIME% %SYS32%\Shutdown.exe, is present, proceeding
  186. end
  187. item: Get Registry Key Value
  188. Variable=USER
  189. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  190. Value Name=DefaultUserName
  191. Flags=00000100
  192. end
  193. item: Remark
  194. Text=We stop writing to log here for security reasons
  195. end
  196. item: Open/Close INSTALL.LOG
  197. Flags=00000001
  198. end
  199. item: Edit Registry
  200. Total Keys=6
  201. item: Key
  202. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  203. New Value=%DOMAIN%
  204. Value Name=DefaultDomainName
  205. Root=2
  206. end
  207. item: Key
  208. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  209. New Value=%SVCACCT%
  210. Value Name=DefaultUserName
  211. Root=2
  212. end
  213. item: Key
  214. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  215. New Value=%SVCACCTPW%
  216. Value Name=DefaultPassword
  217. Root=2
  218. end
  219. item: Key
  220. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  221. New Value=1
  222. Value Name=AutoAdminLogon
  223. Root=2
  224. end
  225. item: Key
  226. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  227. New Value=%USER%
  228. Value Name=PreviousUser
  229. Root=2
  230. end
  231. item: Key
  232. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  233. New Value=1
  234. Value Name=IENT_PHASE
  235. Root=2
  236. end
  237. end
  238. item: Remark
  239. Text=NTFS Locked down systems may have a key "DontDisplayLastUserName" set, we'll disable for our install
  240. end
  241. item: Edit Registry
  242. Total Keys=1
  243. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  244. New Value=0
  245. Value Name=DontDisplayLastUserName
  246. Root=2
  247. end
  248. item: Open/Close INSTALL.LOG
  249. end
  250. item: Add Text to INSTALL.LOG
  251. Text=PHASE=Null %TIME% Autoadmin login & path to source files set in reg
  252. end
  253. item: Remark
  254. Text=DISABLE KEYBOARD and mouse, enable AutoAdminLogon, and WRITE SETUP PHASE # to registry
  255. end
  256. item: Edit Registry
  257. Total Keys=2
  258. item: Key
  259. Key=SYSTEM\CurrentControlSet\Services\Kbdclass
  260. New Value=4
  261. Value Name=Start
  262. Root=2
  263. Data Type=3
  264. end
  265. item: Key
  266. Key=SYSTEM\CurrentControlSet\Services\Mouclass
  267. New Value=4
  268. Value Name=Start
  269. Root=2
  270. Data Type=3
  271. end
  272. end
  273. item: Add Text to INSTALL.LOG
  274. Text=PHASE=Null %TIME% Mouse & Keyboard disabled
  275. end
  276. item: Remark
  277. Text=Disable Internet Explorer Startup Box
  278. end
  279. item: Edit Registry
  280. Total Keys=1
  281. Key=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
  282. Value Name=BrowserWebCheck
  283. Root=2
  284. end
  285. item: Edit Registry
  286. Total Keys=1
  287. Key=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
  288. New Value=%SYS32%\IESetup.exe
  289. Value Name=IENT_RUN
  290. Root=2
  291. end
  292. item: Edit Registry
  293. Total Keys=1
  294. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  295. New Value=%IENT_PATH%
  296. Value Name=IENT_PATH
  297. Root=2
  298. end
  299. item: Get Registry Key Value
  300. Variable=RUNKEY
  301. Key=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
  302. Value Name=IENT_RUN
  303. Flags=00000100
  304. end
  305. item: Get Registry Key Value
  306. Variable=DEFAULTUSER
  307. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  308. Value Name=DefaultUserName
  309. Flags=00000100
  310. end
  311. item: Add Text to INSTALL.LOG
  312. Text=PHASE "" %TIME% Wrote %IENT_PATH%\ to IENT_PATH, Wrote "%RUNKEY%" to the run key, about to reboot, Set Default User to "%DEFAULTUSER%"
  313. end
  314. item: Remark
  315. Text= Since the admin may be a new user to the client, we're disabling the welcome.exe
  316. end
  317. item: Get Environment Variable
  318. Variable=WINDIR
  319. Environment=WINDIR
  320. end
  321. item: Rename File/Directory
  322. Old Pathname=%WINDIR%\Welcome.exe
  323. New Filename=Welcome.old
  324. end
  325. item: Find File in Path
  326. Variable=WELCOMEOLD
  327. Pathname List=welcome.old
  328. end
  329. item: Find File in Path
  330. Variable=WELCOMEEXE
  331. Pathname List=welcome.exe
  332. end
  333. item: Add Text to INSTALL.LOG
  334. Text=PHASE "" %TIME% Renamed Welcome.exe. Welcome.old: "%WELCOMEOLD%", Welcome.exe: "%WELCOMEEXE%"
  335. end
  336. item: Add Text to INSTALL.LOG
  337. Text=PHASE "" %TIME% Calling Shutdown.exe
  338. end
  339. item: Execute Program
  340. Pathname=%SYS32%\SHUTDOWN.EXE
  341. Command Line=/L /R /T:10 "Internet Explorer Setup is shutting down this system to install Internet Explorer" /Y /C
  342. Default Directory=%SYS32%
  343. Flags=00000010
  344. end
  345. item: End Block
  346. end
  347. item: Remark
  348. end
  349. item: If/While Statement
  350. Variable=IENT_PHASE
  351. Value=1
  352. end
  353. item: Remark
  354. Text= THIS PHASE IS RUN SECOND IN THE CONTEXT OF PCMSVC ACCT
  355. end
  356. item: Remark
  357. Text= MACHINE WILL AUTOLOGON WITH MOUSE & KEYS DISABLED.
  358. end
  359. item: Remark
  360. Text= AFTER REACHING THE SHELL, SETUP WILL LAUNCH FROM THE RUN KEY
  361. end
  362. item: Remark
  363. Text= AFTER SETUP COMPLETES WE RUN SHUTDOWN.EXE AND REBOOT AGAIN
  364. end
  365. item: Add Text to INSTALL.LOG
  366. Text=***************************************************************************************************************
  367. end
  368. item: Add Text to INSTALL.LOG
  369. Text=***************************************************************************************************************
  370. end
  371. item: Add Text to INSTALL.LOG
  372. Text=PHASE=1 %TIME% Entering IENT_PHASE %IENT_PHASE%
  373. end
  374. item: Get Registry Key Value
  375. Variable=IENT_PATH
  376. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  377. Value Name=IENT_PATH
  378. Flags=00000100
  379. end
  380. item: Add Text to INSTALL.LOG
  381. Text=PHASE=1 %TIME% Got %IENT_PATH%\ from IENT_PATH, resetting AutoAdmin Logon & changing phase to 2
  382. end
  383. item: Remark
  384. Text=CHANGE PHASE to 2 and reseting AutoAdminLogon
  385. end
  386. item: Open/Close INSTALL.LOG
  387. Flags=00000001
  388. end
  389. item: Edit Registry
  390. Total Keys=4
  391. item: Key
  392. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  393. New Value=1
  394. New Value=
  395. Value Name=AutoAdminLogon
  396. Root=2
  397. end
  398. item: Key
  399. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  400. New Value=%SVCACCT%
  401. Value Name=DefaultUserName
  402. Root=2
  403. end
  404. item: Key
  405. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  406. New Value=%SVCACCTPW%
  407. Value Name=DefaultPassword
  408. Root=2
  409. end
  410. item: Key
  411. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  412. New Value=2
  413. New Value=
  414. Value Name=IENT_PHASE
  415. Root=2
  416. end
  417. end
  418. item: Open/Close INSTALL.LOG
  419. end
  420. item: Remark
  421. Text=***************************************************************
  422. end
  423. item: Remark
  424. Text=IF INSTALLING INTERNET EXPLORER 4.0, MODIFY THE EXECUTE PROGRAM ACTION BELOW
  425. end
  426. item: Remark
  427. Text=TO RUN ie4setup /Q:A /C:"ie4wzd /S:""#E"" /Q /R:N"
  428. end
  429. item: Remark
  430. Text=ALSO MODIFY THE ADD TEXT TO INSTALL.LOG ACTION TO SHOW THE CORRECT COMMAND LINE
  431. end
  432. item: Remark
  433. Text=***************************************************************
  434. end
  435. item: Execute Program
  436. Pathname=%IENT_PATH%\ie6setup.exe
  437. Command Line=/Q:A /C:"ie6wzd /S:""#E"" /Q /R:N"
  438. Flags=00000010
  439. end
  440. item: Add Text to INSTALL.LOG
  441. Text=Executing %IENT_PATH%\ie6setup.exe /Q:A /C:"ie6wzd /S:""#E"" /Q /R:N"
  442. end
  443. item: Add Text to INSTALL.LOG
  444. Text=PHASE=1 %TIME% Finishing IENT_PHASE=1, setup should have finished, calling shutdown.exe
  445. end
  446. item: Remark
  447. Text=Strong Shutdown to get around anything from the startup group
  448. end
  449. item: Execute Program
  450. Pathname=%SYS32%\SHUTDOWN.EXE
  451. Command Line= /L /R /Y /T:10 "Internet Explorer is shutting down this system to run the second half of the installation" /C
  452. Default Directory=%SYS32%
  453. Flags=00000010
  454. end
  455. item: Exit Installation
  456. end
  457. item: End Block
  458. end
  459. item: Remark
  460. end
  461. item: If/While Statement
  462. Variable=IENT_PHASE
  463. Value=2
  464. end
  465. item: Remark
  466. Text= THIS PHASE IS RUN THIRD IN THE CONTEXT OF PCMSVC ACCT
  467. end
  468. item: Remark
  469. Text= MACHINE WILL AUTOLOGON WITH MOUSE & KEYS DISABLED.
  470. end
  471. item: Remark
  472. Text= AFTER REACHING THE SHELL, SETUP WILL LAUNCH FROM THE RUN KEY
  473. end
  474. item: Remark
  475. Text= AFTER SETUP COMPLETES WE RUN SHUTDOWN.EXE AND REBOOT AGAIN
  476. end
  477. item: Add Text to INSTALL.LOG
  478. Text=PHASE=2 %TIME% Got %IENT_PATH%\ from IENT_PATH, changing phase to "" for final phase
  479. end
  480. item: Add Text to INSTALL.LOG
  481. Text=***************************************************************************************************************
  482. end
  483. item: Add Text to INSTALL.LOG
  484. Text=***************************************************************************************************************
  485. end
  486. item: Get Registry Key Value
  487. Variable=PREVIOUSUSER
  488. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  489. Value Name=PreviousUser
  490. Flags=00000100
  491. end
  492. item: Remark
  493. Text=Stop writing to log for security reasons.
  494. end
  495. item: Open/Close INSTALL.LOG
  496. Flags=00000001
  497. end
  498. item: Edit Registry
  499. Total Keys=6
  500. item: Key
  501. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  502. New Value=%PREVIOUSUSER%
  503. New Value=
  504. Value Name=DefaultUserName
  505. Root=2
  506. end
  507. item: Key
  508. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  509. New Value=0
  510. Value Name=AutoAdminLogon
  511. Root=2
  512. end
  513. item: Key
  514. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  515. Value Name=DefaultPassword
  516. Root=2
  517. end
  518. item: Key
  519. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  520. Value Name=IENT_PATH
  521. Root=194
  522. end
  523. item: Key
  524. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  525. Value Name=IENT_PHASE
  526. Root=194
  527. end
  528. item: Key
  529. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  530. Value Name=PreviousUser
  531. Root=194
  532. end
  533. end
  534. item: Open/Close INSTALL.LOG
  535. end
  536. item: Remark
  537. Text=Re-enable "DontDisplayLastUserName" (NTFS Locked down systems only)
  538. end
  539. item: Remark
  540. Text=UN-REMARK NEXT LINE TO SET "DontDisplayLastUserName" TO " 1 "
  541. end
  542. remarked item: Edit Registry
  543. Total Keys=1
  544. Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  545. New Value=1
  546. Value Name=DontDisplayLastUserName
  547. Root=2
  548. end
  549. item: Remark
  550. Text=REMOVE AUTOLOGON; ENABLE KEYS & MOUSE
  551. end
  552. item: Edit Registry
  553. Total Keys=2
  554. item: Key
  555. Key=SYSTEM\CurrentControlSet\Services\Kbdclass
  556. New Value=1
  557. Value Name=Start
  558. Root=2
  559. Data Type=3
  560. end
  561. item: Key
  562. Key=SYSTEM\CurrentControlSet\Services\Mouclass
  563. New Value=1
  564. Value Name=Start
  565. Root=2
  566. Data Type=3
  567. end
  568. end
  569. item: Edit Registry
  570. Total Keys=1
  571. Key=SOFTWARE\Microsoft\Windows\CurrentVersion\Run
  572. Value Name=IENT_RUN
  573. Root=194
  574. end
  575. item: Add Text to INSTALL.LOG
  576. Text=PHASE=2 %TIME% Disabled autoadmin logon and turned keyboard / mouse back on. About to reboot again. Run Key Shows "%RUNKEY%"
  577. end
  578. item: Get Environment Variable
  579. Variable=WINDIR
  580. Environment=WINDIR
  581. end
  582. item: Rename File/Directory
  583. Old Pathname=%WINDIR%\Welcome.old
  584. New Filename=Welcome.exe
  585. end
  586. item: Execute Program
  587. Pathname=%SYS32%\SHUTDOWN.EXE
  588. Command Line=/L /R /T:30 "Internet Explorer setup is shutting down this system and will return control to the user " /Y /C
  589. Default Directory=%SYS32%
  590. Flags=00000010
  591. end
  592. item: Delete File
  593. Pathname=%SYS32%\shutdown.exe
  594. end
  595. item: Add Text to INSTALL.LOG
  596. Text=IESETUP SCRIPT COMPLETED
  597. end
  598. item: Exit Installation
  599. end
  600. item: End Block
  601. end