Printing object properties in Powershell

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Printing object properties in Powershell

Message par ForumBot »

Printing object properties in Powershell
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Printing object properties in Powershell

Message par ForumBot »

Try this:

```
Write-Host ($obj | Format-Table | Out-String)

```

or

```
Write-Host ($obj | Format-List | Out-String)

```
Répondre

Revenir à « PowerShell »