![]() ![]() Specifies the default gateways used by the computer. This variable is set before the task sequence manager runs each individual step. Specifies the name of the currently running task sequence step. If the task sequence is running from standalone media, this variable isn’t set. Stores the value of Configuration Manager client GUID. If this variable doesn’t exist, then there’s no cache. The variable contains the path to the cache. The task sequence sets this variable when it caches content on the local drive. The task sequence sets this variable when it detects a computer that’s in UEFI mode. If the task sequence doesn’t reference a boot image package, this variable isn’t set. If the current running task sequence references a boot image package, this variable stores the boot image package ID. Specifies the asset tag for the computer. ExampleĪpplies to the Set Dynamic Variables step. ![]() If the task sequence is running from stand-alone media, this variable is undefined. ![]() It uses the same format as a Configuration Manager software distribution deployment ID. Stores the current running task sequence deployment unique ID. Specifies the package ID of the Configuration Manager package that contains the USMT files. You can configure your task sequence to retrieve this value from the environment and use it to specify the same hard drive location to use for the new operating system. The hard drive location for where the operating system is installed is stored in this variable. The task sequence scans the computer’s hard drives for a previous operating system installation when Windows PE starts. You can configure your task sequence to retrieve this value from the environment and use it to specify the same Windows folder location to use for the new operating system installation. The Windows folder location is stored in this variable. # Set a custom variable "startTime" to the current time Write-Output "Hello world!" | Out-File -FilePath "$_SMSTSLogPath\mylog.log" -Encoding "Default" -Append # Or, convert all of the variables currently in the environment to PowerShell variables # Set a variable for the task sequence log path # Query the environment to get an existing variable # Create an object to access the task sequence environment ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |