Scripteur Posted May 16, 2018 Report post Posted May 16, 2018 Exact I see the error when I try to apply the output to OSDDiskIndex variable in the task sequence using Run Command Line : (New-Object -COMObject Microsoft.SMS.TSEnvironment).Value('OSDDiskIndex') = $MonDisk.Disk }" thanks Quote Share this post Link to post Share on other sites More sharing options...
Scripteur Posted May 24, 2018 Report post Posted May 24, 2018 Any news? pls help. Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted May 24, 2018 Report post Posted May 24, 2018 (New-Object -COMObject Microsoft.SMS.TSEnvironment).Value('OSDDiskIndex') = $MonDisk.Disk }" returned 0 doesn't look like it's an error, have you tried to dump the variables created to verify it it set's the variable at all ? i'd suggest you pause the task sequence before and after the step to verify Quote Share this post Link to post Share on other sites More sharing options...
radish Posted August 29, 2018 Report post Posted August 29, 2018 Hello, I would like to ask how to install the system on multiple hard disks. There are script files to share. When there are multiple hard disks in my computer, the deployment system should be installed on the disk number partition where the original system is specified. Is there any solution? 你好,请问 在多个硬盘上 安装系统 可有脚本文件分享啊, 当我电脑存在多个硬盘时候, 部署系统要安装在原来系统指定所在的磁盘编号分区上,有什么办法解决吗 Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted August 29, 2018 Report post Posted August 29, 2018 you'll need to create a custom script to detect where that original system is installed, and use that for the apply operating system step (using a variable), but read my first comment in this thread.... Quote Share this post Link to post Share on other sites More sharing options...
radish Posted September 1, 2018 Report post Posted September 1, 2018 On 2018/8/30 at AM3点00分, anyweb said: 您需要创建一个自定义脚本来检测原始系统的安装位置,并将其用于应用操作系统步骤(使用变量),但请阅读此线程中的第一条注释.... 你好,请问该如何编写脚本应用, 无奈对脚本不熟悉,是否有空请帮忙写个检测系统目录脚本吗? Quote Share this post Link to post Share on other sites More sharing options...