Printing object properties in Powershell

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Printing object properties in Powershell

Message par Clippy »

Printing object properties in Powershell
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Re: Printing object properties in Powershell

Message par Clippy »

Try this:

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

```

or

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

```
Répondre

Revenir à « PowerShell »