Solved

MS DOS

Posted on 2012-03-16
6
300 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
[X]
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
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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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

Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Server to Cisco switch connectivity 10 102
Join with a SQL Server STUFF 5 49
Move FSMO roles... 9 40
BgInfo help 5 65
Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

733 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