A better question though, what is it you're actually trying to do, I know you've said you want the full name in powershell, but what are you actually trying to achieve?
Regards
Alex
Noah
@Alex Good point! Thanks. I did that because he did specify the file path leading to an .exe anyway.
Alex
Yeah but he's given you the "Leaf" object, you've already specified the entire path, your script would work fine don't get me wrong, but your script would be better utilised if you're pulling multiple objects from a higher level folder.
If you wanted to pull all EXE files from say, The Microsoft Office folder. Yes it'd work perfectly and if that's what he actually needs rather than what he's explained then your script is the much better option.
Please try this.
Open in new window