Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

Create a custom registry key for version tracking?

What would be a good way to create a custom Registry key and data value to be something like "version 1.0" or "version 2.0" for my over all operating system deployment? Not the Windows version, but the build of the task sequence I deploy for the entire OS setup.

I'm deploying OS's with task sequence in SCCM, and while I do have an image version, the task sequence is what really completes and finalizes it.

Currently as a last step of the OS deployment, I have a batch script that generates a file to C-drive with a date time-stamp as its name (using powershell) to show when it was imaged.

But I'm wondering if I should go for the registry instead, and if so, which key should I add into that won't cause issues? Just something benign that I can refer to on remote registry scans going forward.
HKLM somewhere?
0
garryshape
Asked:
garryshape
  • 3
  • 3
3 Solutions
 
NVITCommented:
I think the way you have it is fine. Just make sure only admin can erase it.
0
 
garryshapeAuthor Commented:
What about this?

Create key:
HKEY_LOCAL_MACHINE\SOFTWARE\IT_Support

then a string value "Image Version"

with a number in it
0
 
NVITCommented:
That registry solution should work. Maybe also add a date key?

I just thought that you didn't need a different solution... since you already have one and it works for you...Does it?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
garryshapeAuthor Commented:
The file works but I don't know how to assess it as easily as a registry query
0
 
garryshapeAuthor Commented:
yeah looks like this would work, it does manually, just need to try it in task sequence now:

%windir%\System32\reg.exe ADD HKLM\SOFTWARE\IT_Support /v "Image Version" /t REG_SZ /d "1.0" /f
%windir%\System32\reg.exe ADD HKLM\SOFTWARE\IT_Support /v "Image Date" /t REG_SZ /d "%date%" /f
0
 
NVITCommented:
That would work great.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now