FG
💻 Software

How can I get a property of an object in powershell without using parentheses?

Fresh7 days ago
Mar 15, 202614903 views
Confidence Score0%
0%

Problem

I often find that I have to surround a command in parentheses and then use the property access operator (dot-syntax) to get the value of a property. This is rather annoying since I have to go back to the beginning of the line when I'd rather just keep typing where I am. It is especially annoying wh…

Error Output

Get-PSProvider FileSystem

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I get a property of an object in powershell without using parentheses?

Low Risk

You can use . This can be shortened using the alias and only typing part of the property name: An additional benefit to this method is that you can access a single property for multiple objects. This will not return anything (Update: This does work …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment