Powershell with Database

This topic contains 1 reply, has 2 voices, and was last updated by  Don Jones 3 years, 2 months ago.

  • Author
  • #24856

    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

    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.