Hello
i wrote a script that list for each remote computer( by ip ) disk drive information, but cannot Retrieve remote computer ip variable inside my script
$ips=gc computersip.txt # multiple remote computers ip
icm $ips {
Write-output "that is computer ip: $ip" #cannot Retrieve $ip value
gwmi win32_diskdrive
}
how can i Retrieve remote computer ip......thank you