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.
Waffled on a bit, but a great explanation and very useful tips. Thank you 😀
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.