Hello,
I am trying to add a script to add a registry key during the OSD via SCCM.
As a test, I tried out this single script which works when used individually but when used in task sequence, it doesn't work. Where do I need to add this step.
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\SCCM" /v DeployedImage /t REG_SZ /d "Done"
I am using it as "Run as command line" step after "Setup Windows and ConfigMgr" step.
...........................................................................................................................................................................................
In total, I need to add a registry key with some details which can be pulled later via Reports. I am triying using the script in the link
(https://social.technet.microsoft.com/Forums/en-US/24cd277c-d8cb-4dad-a10e-a087a2e5a791/tattoo-in-osd?forum=configmanagerosd#7d11e483-83a4-4d97-9721-f6a359f6717f)
here individually in a task sequence but it fails with the below error message in SMSTS.log and TSAGENT.log
Error executing Task Sequence Manager service. Code 0x80004005
I have tried using the script directly as a "Run as command line step" as well as following the link here (http://powershelldistrict.com/osd-tattoo-powershell/) and creating a package without a program and then using it.
Please assist!