So I want to a copy the value of a registry entry to another one. Should be easy enough.
$Value = Get-ItemPropertyValue HKLM\Software\PA\Globe\ -name IPaddress_333rrr
Set-ItemProperty HKLM\Software\PA\Globe\ -name -value $value
Name of the entry is Ipaddress_ random characters and numbers. It's different on every machine. How can extract that so I put it -name switch? Under this key two entries says ipaddress with random characters one is the same on every computer. the other two say ipaddressV6 with random characters.
The best I could come up with was get-item hklm\Software\PA\Globe\
$property = Get-ItemProperty 'hklm\Software\PA\Globe\'
Which gives me the results
PS C:\windows\system32> $result
How can I get that reg entry without the value?
Using some super secret hidden properties:
$name = $result.psobject.properties.name
Thank you so much, worked like charm. I have to do some research about that super secret line psojects and commands like it.
You must be logged in to reply to this topic.