proxb / PowerShell_Scripts

Miscellaneous scripts for things that I have done; more scripts will arrive as I get time to update this repo.
MIT License
205 stars 72 forks source link

Get-LocalGroupMembership.ps1 : Alternate Credentials? #11

Open me-g33k opened 7 years ago

me-g33k commented 7 years ago

I work in a DevOps heavy environment where there are a lot of machines that do not get joined into the Domain because they are torn down after their smoke-tests are run. Or that's what they tell me is supposed to happen...

In reality though a good number of these machines persist and get passed around from dev to dev. That creates an issue of needing non-domain credentials to pull ADSI information from the remote host.

How could we facilitate that use case with the script? Would it need to be a new fork entirely or could it be added in?