peterlyttle
Technical User
Hello, just started working with powershell today and am wondering how I would do the following -
The Get-Service command will return 3 columns and many rows, is there any way I can input this into an array so that I dont have to run the Get-Service command multiple times?
From this I would then like to search the array for a value eg "DHCP Client" and then print the whole row in the array.
Anyone have any ideas?
Cheers,
Peter
The Get-Service command will return 3 columns and many rows, is there any way I can input this into an array so that I dont have to run the Get-Service command multiple times?
From this I would then like to search the array for a value eg "DHCP Client" and then print the whole row in the array.
Anyone have any ideas?
Cheers,
Peter