I am trying to get my script to return details from Active Directory based on the currently logged in user, I have the script to query AD and it works great and gives me every user, how can I restrict the search to provide just the logged in user?
here is what I have
Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command")
objCommand.ActiveConnection = objConnection
objCommand.CommandText = _
Set objRecordSet = objCommand.Execute
While Not objRecordSet.EOF