I
I
Ilya Kirillov2021-04-01 23:08:14
PowerShell
Ilya Kirillov, 2021-04-01 23:08:14

How to find out the full name remotely by the name of the PC?

Hello! Please tell me how can I find out the user's full name by computer name? So that you can get a list of all full names from one PC. Is there some command in cmd, powershell or software

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
MaxKozlov, 2021-04-02
@MaxKozlov

.... uncovering the crystal ball....
If we assume that the Active Directory tag is not just like that, then you can use
(Get-CimInstance -ComputerName comptername -Class Win32_ComputerSystem).Username
Find out the login of the current user
And then by login using Get-ADUser login to find out other necessary information

A
Alexey Dmitriev, 2021-04-02
@SignFinder

In Powershell, you can remotely enter the computer via Enter-PSSession and do get-childtem c:\Users. You
will see a list of everyone who logged into it.
Then on logins to get from AD a full name.
You can run through several computers through Invoke-Command, you can use variables instead of the absolute path c:\users

A
Alexey Kurepin, 2021-04-01
@foxweb

There are three ways:
1) If you go to the computer remotely and rummage around there. What will you do if most users have accounts called User or Admin?
2) If the computer name contains a full name. This happens, but rarely.
3) If someone before you set up and gave you access to a corporate network with a domain so that there is a base of computers with the full name of their owners.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question