Here is a quick way to find the current user in your Active Directory and retrieve account information such as the display name:
([adsisearcher]"(samaccountname=$env:USERNAME)").FindOne().Properties['displayname']
Here is a quick way to find the current user in your Active Directory and retrieve account information such as the display name:
([adsisearcher]"(samaccountname=$env:USERNAME)").FindOne().Properties['displayname']