Powershell with Database

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 1 year, 6 months ago.

  • Author
  • #24856
    Profile photo of Lisha Mhlanga
    Lisha Mhlanga

    i have a problem i am trying to use a script like Get-PhysicalDisk | Get-StorageReliabilityCounter | Select-Object DeviceID, Temperature
    to get temp of hard disk and output the script result to a mysql or sql server and display it ,whats the best approach to solve this.
    would appreciate an help to solve this.



  • #24857
    Profile photo of Don Jones
    Don Jones

    have a look at https://www.penflip.com/powershellorg/ditch-excel-making-historical-and-trend-reports-in-powershell. It covers getting PowerShell to talk to SQL Server and includes an example script module that does so.

You must be logged in to reply to this topic.