Product: PowerShell Universal Version: 2.3.0
I have a dashboard set up that is authenticating users by using their $Credentials to read the domain. I also have a Published Folder that holds the thumbnailPhoto for every AD user. I was hoping I could use that Published Folder and the $Credentials.UserName to show the currently logged-in user’s AD photo as the avatar in the upper-right. I’ve seen mention of a New-UDAvatar cmdlet on the forum and a GitHub file, but nothing in the docs on how to get it working.
Was hoping something like this would do the trick, but I guess I don’t really know where to put it to make it work as expected.
New-UDAvatar -Image "/ADPhotos/$($User.UserName).jpg"