Link to home
Start Free TrialLog in
Avatar of Kylo Ren
Kylo RenFlag for United States of America

asked on

Powershell get value of property

when i gci a reg directory this is what i get which is good.
 
full path
"HKEY_LOCAL_MACHINE\software\microsoft\windows nt\currentversion\profilelist\"

0   8 S-1-5-21-3652174762-1322114... {ProfileImagePath, Flags, State, Sid...}  

but i need to get the value for the profileimagepath property.

dir | select-object -Property name
Displays all the SIDS

dir | select-object -Property ProfileImagePath
Has blank values in PS.

What am i not doing right?

ASKER CERTIFIED SOLUTION
Avatar of flaphead_com
flaphead_com
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kylo Ren

ASKER

nice! that worked, thanks.

you lost me at this part

$_.pspath;$PIP.PSChildName;$PIP.ProfileImagePath}

Can you tell me what, where or how you found .pspath .pschildname options?

This question might be easier to answer, how did you know use the ; symbol and what is its purpose?

Detailed information explaining my question can be found at the link below.

http://powershell.com/cs/blogs/ebook/archive/2009/03/30/chapter-16-the-registry.aspx