How to find out the host name or computer name in a domain, a user has currently logged onto ?
user name = known to me.host name = unknown to me, that to find out.
Please don't suggest me psloggedon tool or net view or any for script, since it query the user name who logged onto remote computer.
With Warm Regards,
AD & Exchange Admin
Skype : manasrrp6
Plant a Tree & Save the Earth.
Query Host Name ?
- 93 Views
- Last Post 25 June 2017
Push the below one liner from GPO .
("$env:COMPUTERNAME"+"."+"$env:USERDNSDOMAIN"+":"+"$env:USERNAME").ToUpper() | Out-File -FilePath D:\Scripts\"$env:USERNAME".txtCopy-Item "$env:USERNAME".txt \$Remoreserver\remoteshare$