run powershell command using csv as input

后端 未结 3 791
我寻月下人不归
我寻月下人不归 2021-02-02 00:55

I have a csv that looks like

Name, email, address
Name, email, address
Name, email, address

I am wanting to run

3条回答
  •  庸人自扰
    2021-02-02 01:24

    import-csv .\file.csv  -header ("first","second","third") | foreach{New-Mailbox -Name $_.first -WindowsLiveID $_.second -ImportLiveId}
    

提交回复
热议问题