我是Powershell的新手,我只是想出了如何添加专栏。我现在希望将列Unique Account Name
放在Type0
列之前:
Import-Csv 'U:\Local Group Members.csv' | where-Object {$_.Name0 -eq "administrators"} |
Select-Object *,@{Name='Unique Account Name';Expression={'setvalue'}} |
Export-Csv -notypeinformation U:\LGMbestone.csv