Powershell script in SCCM task sequence to name device based on asset/service tag no.
This script is used within the SCCM task sequence and performs two functions. Firstly it determines whether or not the machine is a Hyper-V VM, and if it is, it assigns a task sequence variable called “PSisVM”. This is useful to hold in the TS as there are certain things that only need to be…