Created
June 12, 2015 14:12
-
-
Save RaccoonDev/8de0964a3c6911647184 to your computer and use it in GitHub Desktop.
Ask Active Directory For User Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#get thumbnail bytes array | |
$userThumbnail = (Get-ADUser dmytro_mykhailov -Properties thumbnailPhoto).thumbnailPhoto; | |
#store bytes array into file | |
Set-Content -Value $userThumbnail -Encoding byte -Path thumbnail.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ADUser dmytro_mykhailov -Properties * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment