Get-ItemProperty in registry should return value type.
Votes from Connect: 13
Original Date Submitted: 12/20/2010 5:55:34 AM
Description:
Contact Information
Handle: Bartek Bielawski
Site Name: PowerShell
Feedback ID: 632464
Frequency: Always Happens
Regression: Yes, this happens in all previous versions
Problem Description:
Currently I see no easy way to get type of registry values. Info presented by Get-ItemProperty is not very helpful. I found workaround for that (sample):
$key = Get-Item 'HKLM:\software\Microsoft\windows\CurrentVersion\policies\Explorer'
$Property = @{Name = 'Property'; Expression = {$}}
$Value = @{Name = 'Value'; Expression = {$key.GetValue($) }}
$ValueType = @{Name = 'Value Type'; Expression = {$key.GetValueKind($_)}}
$key.Property | select $Property, $Value, $ValueType
I think it would be better if Get-ItemProperty would return type too.
Product Studio item created by Connect Synchronizer due to creation of feedback ID 632464 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=632464).
Repro Steps:
Expected Results:
Internal BugId: 2773
