Why is this coming up empty? I'm looking for variables related to the home directory. Do I have to resort to findstr in these cases? I realize that I'm piping in an object. I'd like to be able to search all properties. -InputOjbect is type PSObject.
dir variable: | select-string users
Expected output:
$ users
HOME C:\Users\js
PROFILE C:\Users\js\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
PWD C:\Users\js
EDIT:
Here's a semi-weird answer, but I have to put in the properties I want.
dir variable: | select name,value | select-string users
@{Name=HOME; Value=C:\Users\js}
@{Name=PROFILE; Value=C:\Users\js\Documents\PowerShell\Microsoft.PowerShell_profile.ps1}
@{Name=PWD; Value=C:\Users\js}