PS自定义对象二_PSCustomObject时间:2023-03-09 00:21:51 创建自定义对象 $obj = [pscustomobject]@{a=1;b="";c=$null} % 选择属性列 $obj | gm | % definition ( $obj |gm ).definition $obj | gm |select -ExpandProperty definition ?过滤条件 '=$' 表示以 等号 结尾 PS创建自定义对象: http://www.cnblogs.com/dreamer-fish/p/3804168.html