Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

MS DOS

Posted on 2012-03-16
6
294 Views
Last Modified: 2012-04-18
Hello,
I need to build a list listing the users assigned to computers.  User name and computer name.  How would I do this using a command promt?
Thanks
0
Comment
Question by:Reyesrj
6 Comments
 
LVL 10

Expert Comment

by:Alan_White
ID: 37728278
Can you please clarify what you mean by "users assigned to computers"?

Are you refering to the AD user property "logon to"?  ie users are restricted to only logon to certain PCs.

Or do you want to know which users have logged on to which PCs?

Are we dealing with Windows PCs in an AD Domain?
0
 

Author Comment

by:Reyesrj
ID: 37728315
Thanks for the quick reply.
Sorry I was not so clrear.

We are on a AD domain.

If a user calls me and ask for help but the user does not know their computer name or IP address, how do I get the computer name or IP address when all I have is the user's logon name?
0
 
LVL 10

Assisted Solution

by:Alan_White
Alan_White earned 166 total points
ID: 37728347
Simple answer:  you cannot.

AD does not store this in an easily accessible way.  You COULD run a script against the DC's security log to search for the authentication at logon but I wouldn't recommend it.

So, options:
1) get your logon script to record logons (a simple append to text file would work if you have few users, or a database table)
2) a 3rd party inventory type app (maybe even SCOM)
3) stick a label on the front of the PC
4) get the user to right click "my comptuer" and tell you the name
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 26

Assisted Solution

by:Leon Fester
Leon Fester earned 167 total points
ID: 37728710
Agreed, with the options above.

If you're running windows 7 Clients, then rather get users into the habit of using the "Windows Remote Assistance" Wizard, then they can request help from you.

Alternatively, check the following links for other possible solutions to show the computer name on the desktop:
http://www.experts-exchange.com/OS/Miscellaneous/Q_21177123.html#a12371522
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/SBS_Small_Business_Server/Q_21892227.html#a16944064
0
 
LVL 5

Accepted Solution

by:
Meultje earned 167 total points
ID: 37734189
With Xp / Windows 2003 you can simply change the name displayed for "My Computer" displayed in the Start Menu or on the desktop by running a registry file setting

------------------------------------------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.0

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
@="My Computer"
"LocalizedString"=hex(2):25,00,75,00,73,00,65,00,72,00,6e,00,61,00,6d,00,65,00,\
  25,00,20,00,6f,00,6e,00,20,00,25,00,63,00,6f,00,6d,00,70,00,75,00,74,00,65,\
  00,72,00,6e,00,61,00,6d,00,65,00,25,00,00,0
--------------------------------------------------------------------------------------------------------------------------------

Copy the text between the lines to a text file "User on Computer name.reg" and paste it in there. Run the file (be sure the extention is .reg (and not .txt) and you wil display the username and computername instead of "My Computer" in the Start Menu and / or desktop.

You can also change this setting by manually change the setting in the registry
Original settingChanged setting
0
 

Author Closing Comment

by:Reyesrj
ID: 37735651
Thanks All!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question