Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8779123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:42:20+00:00 2026-06-13T19:42:20+00:00

I have a registry key that contains multiple string name/data values (they are type

  • 0

I have a registry key that contains multiple string name/data values (they are type REG_SZ). I would like to list the name / data values and sort them by name value. I’d like to do this in powershell. I can get the values with Get-ItemProperty with no problem but I’m not sure how to sort with Sort-Object. As you can see below it’s not sorted.

$item = Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources' | Sort-Object


PSPath                      : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data S
                          ources
PSParentPath                : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI
PSChildName                 : ODBC Data Sources
PSProvider                  : Microsoft.PowerShell.Core\Registry
MSDWDATA_DEFAULT_SYBASE4.00 : DataDirect 4.0 Sybase Wire Protocol
Xtreme Sample Database 2003 : Microsoft Access Driver (*.mdb)
NYT_OPS                     : DataDirect 4.2 Sybase Wire Protocol
NYP_OPS                     : DataDirect 4.2 Sybase Wire Protocol
NYP_MSPA2                   : DataDirect 4.2 Sybase Wire Protocol
NYT_MSPA_A                  : DataDirect 4.2 Sybase Wire Protocol
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:42:21+00:00Added an answer on June 13, 2026 at 7:42 pm
    $p = Get-ItemProperty -Path 'HKLM:\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources'
    $p.PSObject.Properties | Sort-Object Value| Format-Table Name,Value
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a registry string that contains double quotes that I have to edit.
I have a little app which reads registry key string values. It works well
I have a perl function that takes an open registry key object. Now, I
I have a function, that reads a registry key, get a path for a
I have a batch script that checks if a registry key exists and if
I have created the following registry key (copied through regedit): HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\test I would like
I am trying to modify a registry key that I have been told controls
I have a console program that read a registry key under HKCU: OpenSubKey(Software\\Autodesk\\AutoCAD) The
I have a block of code that opens and closes a registry key to
I have this P/Invoke RegSetValueExW that sets the value to the registry key. in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.