Viewing Registry Value Types

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Greg Tate Greg Tate 4 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38994
    Profile photo of Greg Tate
    Greg Tate
    Participant

    How can I use PowerShell to view characteristics about registry values?

    For instance I would like to determine if a value is a string, dword, or qword.

    Running Get-ItemProperty | Select-Object -Property * yields the registry value name and data, but it doesn't indicate the value type.

    #38995
    Profile photo of Alex
    Alex
    Participant

    I have written a script to do this (sorry to plug my one site) but check this out:

    Open Remote Reg

    #39078
    Profile photo of Greg Tate
    Greg Tate
    Participant

    Thanks for the assist Alex.

    I am realizing that get-itemproperty doesn't return as much information as I expected when using the registry provider.

    In similar fashion to your script, the following article shows how to use .NET to retrieve the registry value name/type:

    http://powershell.com/cs/blogs/tips/archive/2015/04/15/getting-registry-values-and-value-types.aspx

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.