【发布时间】:2016-10-23 09:26:39
【问题描述】:
所以我有底部的脚本块:
Import-csv C:\file_location.csv | foreach-object {
Get-WmiObject -computername $_.computername -class Win32_ComputerSystem | select username} | `
Select-Object computername, username | Export-CSV C:\file_location.csv -notypeinformation
导出的 csv 显示计算机名称标头,但没有实际计算机,用户名标头很好。我错过了什么,从哪里漏掉了什么?
谢谢!
【问题讨论】:
标签: windows csv powershell automation