none
HTML Format on PowerShell RRS feed

  • General discussion

  • Dear Team,

    please review the following code 
    $freeSpaceFileName = "C:\FreeSpace.htm"
    
    $serverlist = "C:\server.txt"
    
    
     }
    
    if ($item.DeviceID -eq "C:")
    
    {
    
      $servicestatus = $services.Status
    
      }
    
       if ($item.DeviceID -eq "C:")
    
    {
    
      $ServerIP = $Server
    
      }
    
      if ($item.DeviceID -eq "C:")
    
    {
    
      $Sunnamehostname = $Sunname
    
      }
    
    Write-Host  $item.DeviceID  $Sunname $item.FreeSpace $item.Size  $servicename $servicestatus 
    
    writeDiskInfo $freeSpaceFileName $ServerIP $Sunnamehostname $item.DeviceID  $item.VolumeName  $item.FreeSpace $item.Size $servicename $servicestatus
    
     }
    
    }





    Please help!

    NTRao

    • Edited by NTRao Wednesday, February 7, 2018 1:47 AM
    • Changed type Bill_Stewart Monday, March 12, 2018 9:25 PM
    • Moved by Bill_Stewart Monday, March 12, 2018 9:26 PM This is not "fix/debug/rewrite my script for me" forum
    Tuesday, February 6, 2018 2:25 PM

All replies