Sure
write-host ($obj | Select -ExpandProperty "SomeProp")
Or for that matter:
$obj."SomeProp"
More Related Contents:
- this code my teacher gave it to us as homework and it does not work with me idk why
- How can you use an object’s property in a double-quoted string?
- Powershell: passing json string to curl
- How to escape special characters in PowerShell?
- How can I replace every occurrence of a String in a file with PowerShell?
- Function return value in PowerShell
- Loop through files in a directory using PowerShell
- Delete files older than 15 days using PowerShell
- Output (“echo”) a variable to a text file
- Powershell equivalent of bash ampersand (&) for forking/running background processes
- INI file parsing in PowerShell
- Parameter interpretation when running jobs
- Powershell: Uninstall application by UpgradeCode
- Export-CSV exports length but not name
- How to properly -filter multiple strings in a PowerShell copy script
- Methods to hex edit binary files via Powershell
- How remove accents in PowerShell?
- Unable to convert a string to an integer variable from DateTaken attribute on a JPG file
- How to Grant permission to user on Certificate private key using powershell?
- Using Invoke-Command -ScriptBlock on a function with arguments
- How to use PowerShell copy-item and keep structure
- Powershell – Reboot and Continue Script
- How can I execute an external program with parameters in PowerShell?
- Should $null be on the left side of the equality comparison? (-eq with arrays)
- Rename file on FTP with PowerShell
- Does PowerShell support HashTable Serialization?
- Can’t install nuget package because of “Failed to initialize the PowerShell host”
- How to run powershell command in batch file
- Is there a PowerShell equivalent of `paste` (i.e., horizontal file concatenation)? [duplicate]
- Prevent trailing newline in PowerShell Out-File command