Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Get-Free Disk Space by IP for DMZ/Different Network Servers

$
0
0

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,


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>