I'm developing a 8.1 app that needs to be compatible with windows 10.
I'm trying to get the Username of the user logged in, but it always returns a emtry string.
How do i get the username of a user in a windows 8.1 store app running on a windows 10 pc?
Windows.System.UserProfile.UserInformation.GetPrincipalNameAsync()
and
Windows.System.UserProfile.GetDomainNameAsync()
always return an empty string
Is there another way of getting the AD user name of a user?