0
我有以下代码,并且无法使用PowerShell循环项目。无法使用PowerShell循环来自字符串数组的项目
$ipAddress = @('107.20.253.26', '107.20.178.220', '8.8.8.8')
for($i=0; $i -le $ipAddress.count; $i++) {
$resolve = nslookup $i | Format-list
$resolve | Out-File $resolveFile
}
伟大的解决方案。非常感谢你。这工作真的很好,毫不费力。 – 9009