Importing and Exporting JSON in Powershell

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 2

  • @mikeysouthwell
    @mikeysouthwell 4 หลายเดือนก่อน

    Waffled on a bit, but a great explanation and very useful tips. Thank you 😀

  • @paulf7757
    @paulf7757 4 หลายเดือนก่อน

    Casting it to a [System.ServiceProcess.ServiceControllerStatus] is something I never thought of. I am sure I can use that somewhere.
    When I was playing along at home I used it in a custom powershell object.
    The thing that put me off JSON for a lot of years was Get-ADUser | convertto-json | out-file c:\user.json
    This creates two objects of the same name so it is useless converting back. That was until I learned to use select object first.