hello
This is my first post, please be understanding.
This is my script
$hosty = net view foreach ($j in $hosty) { if ($j -match 'ROW') { $k = $j -replace '\\*' ForEach ( $i in (Get-WmiObject -Class Win32_LogicalDisk -ComputerName $k)) { $partycja = $i.DeviceID $wolne = $i.FreeSpace $rozmiar = $i.Size $nazwa = $i."Nazwa: $j""Partycja: $partycja""Miejsce wolne: {0:#.00 GB}" -f ($wolne / 1GB) } } }
Variable $k is not substitutes.
Please Help