The script is quite simple, but it took me quite a while to figure it out.
The variable "$obj" could be any client object, such as "web", "content type", etc.
$obj.psobject.properties | ?{$obj.IsPropertyAvailable($_.Name)} | %{
Write-Host "$($_.Name): $($_.Value)"
}
No comments:
Post a Comment