PoshSec / PoshSecFramework

A framework for PowerShell and PoshSec scripts for network management, security, and maintenance.
BSD 3-Clause "New" or "Revised" License
145 stars 23 forks source link

Get-Service Fails #7

Closed mwjcomputing closed 10 years ago

mwjcomputing commented 11 years ago

Trying to play with the PSTab features.....

image

Ben0xA commented 11 years ago

Reviewing now.

Ben0xA commented 11 years ago

Get-Service returns System.ServiceProcess.ServiceController. Because psf returns the object it attempts to process it. If you pipe $service | Out-String it works as intended. The solution is in https://github.com/PoshSec/PoshSecFramework/issues/6

Ben0xA commented 11 years ago

Fixed with commit https://github.com/PoshSec/PoshSecFramework/commit/1f8f30ad5b55bedf11831361e784b6aa6c347ddd