I am new to SCCM task sequences and I am having trouble finding how to acquire the actual Package ID.
I have a Package defined under Application Management which consists of Source files and has a package ID of PCK00001
In my task sequence (ID = TSK0001) I use a Run command line task to xcopy the source files onto my target machine. SCCM automattically copies the files from the DP to the target machine and places them into a %_SMSTSMDataPath% folder under a sub folder call packages\"package-id" where "package id" is the ID assigned to the package (PCK00001) under Application Management.
If I try to use the built-in variable %_SMSTSPackageID% to reference the folder (i.e. %_SMSTSMDataPath%\packages\%_SMSTSPackageID%) it uses the package id associated with the Task Sequence itself and not the package id of the package being used by the Run command line task. i.e. %_SMSTSMDataPath%\packages\TSK00001 rather than %_SMSTSMDataPath%\packages\PCK00001
How can I reference the actual package ID for the Application Management package that is being used in the Task sequence Run Command line task?
Jim