locked
請問如何使 client 電腦在 WDS deploy 完成後執行指定的指令? RRS feed

  • 問題

  • 我有一個 script 想在 deploy 完成後讓 client Windows 自動執行。
    2010年7月14日 上午 10:29

解答

  • Hi,

    You can then put all the files required in the following directory so that when you deploy
    the install images these files will be copied to the client computers automatically.

    RemoteInstall\Images\<ImageGroup>\<ImageName>\$OEM$\

    Please note that the <ImageName> should be the same name as your install image.
     

    In your scenario, I think you can put your script.cmd(Your script) in the adjusted path
    "RemoteInstall\Images\<ImageGroup>\<ImageName>\$OEM$\$$\setup\scripts".
    Also, if you have any related files, you should put them in the proper folders.
     

    In this way, the script.cmd will be copied to the %WINDIR%\Setup\Scripts directory.
    Windows Setup searches for the script.cmd file in this directory and executes it.


    Microsoft MVP for Windows Server-Networking, MCT, http://msmvps.com/blogs/richardwu
    • 已標示為解答 dogdogbb 2010年7月14日 上午 10:49
    2010年7月14日 上午 10:38

所有回覆

  • Hi,

    You can then put all the files required in the following directory so that when you deploy
    the install images these files will be copied to the client computers automatically.

    RemoteInstall\Images\<ImageGroup>\<ImageName>\$OEM$\

    Please note that the <ImageName> should be the same name as your install image.
     

    In your scenario, I think you can put your script.cmd(Your script) in the adjusted path
    "RemoteInstall\Images\<ImageGroup>\<ImageName>\$OEM$\$$\setup\scripts".
    Also, if you have any related files, you should put them in the proper folders.
     

    In this way, the script.cmd will be copied to the %WINDIR%\Setup\Scripts directory.
    Windows Setup searches for the script.cmd file in this directory and executes it.


    Microsoft MVP for Windows Server-Networking, MCT, http://msmvps.com/blogs/richardwu
    • 已標示為解答 dogdogbb 2010年7月14日 上午 10:49
    2010年7月14日 上午 10:38
  • Thank you very much!
    2010年7月14日 上午 10:49