locked
Powershell out put to json RRS feed

  • Question

  • Hi team,

    I am able to covert the PowerShell out into json format but need to get the out put in below format

    currently getting  output

    {

    "Drive letter" :"D"

    "Capacity": "80"

    }

    {

    "IPaddress": "10.10.10.100"

    "subnet":"255.255.255.0"

    }

    Desired output

    Disk info

    {

    "Drive letter" :"D"

    "Capacity": "80"

    }

    Network info

    {

    "IPaddress": "10.10.10.100"

    "subnet":"255.255.255.0"

    }

    I need to add Disk and Network labels. Please assist


    Thursday, October 31, 2019 9:57 AM

All replies