我想将以下代码段的输出作为文本文件。我该如何做到这一点?
$users = Import-Csv Y:\Temp\list2.csv
foreach ($user in $users) {
Get-QADUser -lastname $user.lastname -firstname $user.firstname | select firstname,lastname,mobile,primarysmtpaddress,logonname
}
我想将以下代码段的输出作为文本文件。我该如何做到这一点?
$users = Import-Csv Y:\Temp\list2.csv
foreach ($user in $users) {
Get-QADUser -lastname $user.lastname -firstname $user.firstname | select firstname,lastname,mobile,primarysmtpaddress,logonname
}