We had a major storm through here recently and we suffered damage to the house roof and ceilings. I just received the quote to repair. I’m hoping that a small fraction of the 80,000 odd people that download SDIO and/or Desktop Info every month won’t mind chipping in a few dollars to help out. Click on the big blue button at the bottom of the page to help us keep a roof over our heads, literally!
Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.
Okay, so there is way to get the "old" SAM account name of a user using:
USER=set:username,hidden:1 Host=text:Username,display:%username%,font-face:Tahoma,font-size:90%
Is there also any way to get the User Principal Name (UPN) of the user like or something similar:
UPN=set:upn,hidden:1 Host=text:UPN,display:%upn%,font-face:Tahoma,font-size:90%
from my brief reading you might be able to get it using CMD "whoami /upn". failing that we can implement GetUserNameEx
https://learn.microsoft.com/en-us/windows/win32/api/secext/nf-secext-getusernameexw
and possibly GetComputerObjectName while we're at it.
https://learn.microsoft.com/en-us/windows/win32/api/secext/nf-secext-getcomputerobjectnamew