hello,
Is it possible to have a script that generates the free disk space in servers by IP instead of Names?
I'm facing difficulties to have the below script fetch the disk details from different network other than my domain network.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned Get-WMIObject Win32_LogicalDisk -filter “DriveType=3" -computer (Get-Content D:\Scripts\Computers.txt) | Select SystemName,DeviceID,VolumeName,@{Name=”size(GB)”;Expression={“{0:N1}” -f($_.size/1gb)}},@{Name=”freespace(GB)”;Expression={“{0:N1}” -f($_.freespace/1gb)}} | Out-GridView
Thanks,