Solved

Create a custom registry key for version tracking?

Posted on 2014-12-03
6
253 Views
Last Modified: 2014-12-03
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
Comment
Question by:garryshape
  • 3
  • 3
6 Comments
 
LVL 24

Assisted Solution

by:NVIT
NVIT earned 500 total points
ID: 40478975
I think the way you have it is fine. Just make sure only admin can erase it.
0
 

Author Comment

by:garryshape
ID: 40478982
What about this?

Create key:
HKEY_LOCAL_MACHINE\SOFTWARE\IT_Support

then a string value "Image Version"

with a number in it
0
 
LVL 24

Accepted Solution

by:
NVIT earned 500 total points
ID: 40479017
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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:garryshape
ID: 40479036
The file works but I don't know how to assess it as easily as a registry query
0
 

Author Comment

by:garryshape
ID: 40479046
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
 
LVL 24

Assisted Solution

by:NVIT
NVIT earned 500 total points
ID: 40479074
That would work great.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now