none
Need a help to grab registry information RRS feed

  • Question

  • Hi,

    we have a requirement to grab registry information for hkcu (current user). I have tried getting information using CMPivot in SCCM CB but it works for some registry key's not for all. I need to get information particularly on Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\OneNote\OpenNotebooks. 

    Can you please help and assist me on this?

    Thanks,

    VJ

    Monday, October 7, 2019 10:48 AM

Answers

All replies

  • Hi Richard,

    Thanks for your response. I hope CI will check the compliance of registry whether the key has particular value or not but i need to get all the information that is present in the key.

    Thanks,

    VJ

    Monday, October 7, 2019 11:21 AM
  • Use CMPivot 

    https://www.systemcenterdudes.com/how-to-use-sccm-cmpivot/

    Ex- Registry(‘hklm:\\Software\\RegisteredApplications’) | where (Device == ‘SCCMTP1‘) 

    Monday, October 7, 2019 11:37 AM
  • Hi Kalyan,

    Thanks for your quick response.

    I was tried CMPivot but it doesn't give information about registry key that i mentioned above though the script was successful on many machines.

    I believe CMPivot didn't work for all key's.

    Thanks,

    VJ

    Monday, October 7, 2019 11:55 AM
  • You will need to create a script to read this information and write it somewhere else like wmi or registry under hklm. Then collect this info via hardware inventory. The tricks to watch out for are 

    Permission on wmi or regkey

    Make sure the deployment is targeting the user and not the computer

    Make sure that the deployment has a re-occurring deployment


    Garth Jones

    Blog: https://www.enhansoft.com/blog Old Blog: https://sccmug.ca/

    Twitter: @GarthMJ Book: System Center Configuration Manager Reporting Unleashed

    • Marked as answer by Vijay Guru Thursday, October 10, 2019 5:59 PM
    Monday, October 7, 2019 12:00 PM
    Moderator
  • Hi Jones,

    Thanks for the information. I hope your solution should work for me. Do you have any sample script (.vbs) which pull the information about registry key's that would really help us. If not i will try to create a script and follow the steps as you mentioned.

    Appreciate your response and help!

    Thanks,

    VJ

    Monday, October 7, 2019 12:16 PM
  • https://social.technet.microsoft.com/Forums/Lync/en-US/8a504941-c708-4b58-8cc0-9cae984bd670/hkey-current-user-registry-key-inventory-using-sccm?forum=ConfigMgrCBGeneral

    Lists a couple of possible links to other people's blogs on how they've done so.  as you have no doubt surmised, "reporting on" current user elements is very problematic. Even *if* you get something cobbled together to sort of work, it will always be suspect information.  The current user value from yesterday might change or be pointless 24 hours later (that user moves to a different computer, for example--so who cares what the value was on the "They will never use it again" computer yesterday).


    Standardize. Simplify. Automate.

    Monday, October 7, 2019 12:55 PM
  • I have checked couple of registry key, it was working for me, kindly check the remote registry and WMI permissions. 

    CMPivot is the easy way to get current data.

    Monday, October 7, 2019 1:01 PM
  • I have checked couple of registry key, it was working for me, kindly check the remote registry and WMI permissions. 

    CMPivot is the easy way to get current data.

    Just for clarity? Are you use CMPovit to query HKCU, right? My test showed no results use the key he listed above.

    Checking my personal computer I can see that I have 1 onenote regkey but there are zero results in CMPivot. I also don't see how you can tell what user has this key on each computer. 

    Also keep in mind that there is no real reporting (SSRS/PowerBI) with CMPivot. 


    Garth Jones

    Blog: https://www.enhansoft.com/blog Old Blog: https://sccmug.ca/

    Twitter: @GarthMJ Book: System Center Configuration Manager Reporting Unleashed

    Monday, October 7, 2019 2:55 PM
    Moderator
  • Dear Sir,

     

    Just checking in to see if there are any updates. Has this issue been solved? Please feel free to feedback and if the reply is helpful, please kindly click “Mark as answer”. It would make the reply to the top and easier to be found for other people who has the similar question.

    Thank you!

     

     

    Best regards,

    Larry


    Please remember to mark the replies as answers if they help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, October 9, 2019 6:29 AM
  • Thanks Jones for the information. You are correct, i also got the zero result. I will start working on script to gather information from registry and write it to WMI and deploy the same to user.

    Thank you all for your suggestions. Have a good day!

    Regards,

    VJ

    Wednesday, October 9, 2019 10:12 AM
  • Hi,

     

    Thank Garth and Sherry very much for the solution provided. Here's a short summary for the problem.

     

    Problem/Symptom:

    ===================

    Problem details: 

    How to grab the registry information?

      

     

    Solution:

    ===================

    Use a script to gather information from registry and write it to WMI and deploy the same to user.

     

    Best regards,

    Larry


    Please remember to mark the replies as answers if they help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Tuesday, October 15, 2019 6:50 AM