Jump to content


Bruce Zhang

New Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Bruce Zhang

  1. Hi Bro,

        It's really a nice post, thanks for your contributions and I have another question: How can I monitor the value of the task sequence that I created and write to the log.

    E.g. 

    MDT : 6.3.8456.1000 installed on Windows Server 2012 R2

    Client: HP Laptop with dual hard disk. Disk 0: SSD 256G, Disk 1:  HDD 500G

    Aim:  Install the OS on SSD (No all the SSD is on Disk 0, so I want to dynamic select )

    I follow your post and create a variable that named OSD_DiskType.

    powershell -Command "& {(New-Object -COMObject Microsoft.SMS.TSEnvironment).Value('OSD_DiskType') = (Get-Physicaldisk).MediaType}"

    I can find it run and exist code is 0 in smsts.log

    image.png.0e263c6f71cdc7a8115f6e921833c0bd.png

    But the TS doesn't work as I defined during the disk format and partition

    image.png.6498554ca6f956599d0deef8bea9e846.png

    Log:  The action (Format and Partition Disk (UEFI) Disk0) has been skipped because the condition is evaluated to be false

    Question: How can I output the queried information to the log so that I know what happened and find the root of the issue.

                

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.