Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sample code for the second PowerView "power usage" post
gc computers.txt | Sort-Object -Unique | % {Get-DomainComputer -SearchBase "GC://$($ENV:USERDNSDOMAIN)" -LDAPFilter "(name=$_)" -Properties dnshostname}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment