gangstanthony / PowerShell

My PS Scripts
MIT License
336 stars 95 forks source link

many improvements to "Get-BitLockerInfo.ps1" #2

Closed jantari closed 5 years ago

jantari commented 5 years ago

Hi, I really liked your script "Get-BitLockerInfo.ps1" and saw some opportunities for improvements too!

I hope the changes are welcome, if you have any questions just ask before merging!

jantari commented 5 years ago

That would be possible but it is a little more involved, and for Invoke-Command to work you need to have PSRemoting enabled on the remote computers.

Also, I'm not sure how Invoke-Command returns results from multiple computers - I'm guessing in an array, but I'm not going to be able to test that for the next 2 weeks unfortunately so I'd be writing that code "blindly" based on what I assume.

So for now I won't be able to do that, but I can get back to you in 2 weeks (if you remind me) with another pull request. Once we have the Invoke-Command version working we could also implement stuff like:

Get-ADComputer -Filter "Name -like 'TX-20*'" | Get-BitLockerInfo