Get computer login names

Hey Everyone,
I started at a new company recently and there are a ton of computers that are not associated to users.  Basically I don't have a way of knowing which computer belongs to whom unless I check each computer.  I need a script that checks the person
logged on against a file of computer names from active directory.  Is this possible to check who is using that computer?
Thanks,

Thanks Andy-man.  I added some pc's to the pclist text file and ran the script but it didn't output the logged in user.  The results from power shell are below.  I created a c:\scripts directory and "names" is the name of the script.
PS C:\Script> .\names
    Directory: C:\script
Mode                LastWriteTime     Length Name
-a---         3/14/2014   8:12 AM          0 pcusers.txt

Similar Messages

  • Get computer client name

    I would like to know if it is possible to get the computer client name from Flex and if
    possible how to do it.
    Regards,

    i think i remember something similar to this a while back for SBI
    here's the link
    http://forums.adobe.com/thread/630962?tstart=2

  • How to get the login name and password

    Hi,
    I had installed the SAP NW2004s on Windows platform with MaxDB as backend.
    The master user name and password which i used for instllation was
    Username :Administrator
    password:trustno1.
    My SAPSID and DBSID is J2E
    Now i want to login into maxdb
    how should i procedd
    IF i fire the following commnd
    dbmcli -d J2E -u Administrator,trustno1
    i get the follwoing error
    C:\sapdb\programs\bin>dbmcli -d J2E-u Administrator,punadmin
    Error! Connection failed to node (local) for database J2E: ERR_USRFAIL: User aut
    horization failed
    Please help.

    Hi Manoj,
    You are trying to login into database using SAP level user:Administrator. Try login using <sid>adm/SAPService<SID> user or the database user. For more info on MAXDB adminsitration please check:
    <a href="https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=846890">MAXDB admin</a>
    Also check OSS note 143412.
    Please award points accordingly.
    Regards.
    Message was edited by:
            Ruchit Khushu

  • Get MII login name without applets

    We have been modifying our MII pages to minimize use of applets and maximize use of AJAX.
    With the example Javascript code I have, there is one thing I don't know how to do: get the UserID of the logged-in user without the use of applets.
    With any applet on the page, I can use this syntax:
    var username = document.[AppletName].getPropertyValue("IllumLoginName");
    How can I do the same thing without the use of applets?
    Thanks,
    Greg

    This was a step in the right direction.
    (For my AJAX purposes it was important to add "&Content-Type=text/xml" to the end:
    /XMII/Illuminator?service=admin&mode=CurrentProfile&Content-Type=text/xml)
    However, this worked only when the logged-in user also happens to be an administrator. It doesn't work for just any user. Is there a way of obtaining the name of the logged-in user (and other info such as their roles would also be helpful!) even if that user isn't an administrator?
    Greg

  • Getting users login name from app

    All
    How do i extract a users login userid so that i can use it when a submit button is pressed to update an entry in a table.

    Make use of :APP_USER. This will give you the user login.
    Denes Kubicek

  • Get user login in Javascript

    Dear all,
    I would like to create a script to build a URL.
    I would like to add a variable with the user login name.
    Does anyone know how to do it?
    Thanks in advance.
    Gonçalo

    Hi,
    According to your post, my understanding is that you want to add a variable with the user login name.
    To get the login name, you can refer to:
    How to get current logged user information using JavaScript ?
    To add variable to url, you can refer to:
    Adding or Changing parameter (query string) to current url in javascript
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Getting the user name and computer name

    I've been trying to find out how to do this, but can't seem to get it.
    I have an AIR application that needs to get the user's login name, and computer name for verification.  I can't find anywhere to do this.  Is AIR able to get this information? Is there work arounds if there isn't?
    It won't ever be a web app, just an AIR app.

    What I did in Air 2 to accomplish that is the following:
                   public function getHostName():void {
                        if(NativeProcess.isSupported) {
                             var OS:String = Capabilities.os.toLocaleLowerCase();
                             var file:File;
                             if (OS.indexOf('win') > -1) {
                                  //Executable in windows
                                  file = new File('C:\\Windows\\System32\\hostname.exe');
                             } else if (OS.indexOf('mac') > -1 ) {
                                  //Executable in mac
                             } else if (OS.indexOf('linux')) {
                                  //Executable in linux
                             var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
                             nativeProcessStartupInfo.executable = file;
                             var process:NativeProcess = new NativeProcess();
                                  process.addEventListener(NativeProcessExitEvent.EXIT, onExitError);
                                  process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, onOutput);
                                  process.start(nativeProcessStartupInfo);
                                  process.closeInput();
                   import utls.StringHelper;
                   public function onOutput(event:ProgressEvent):void {
                        var strHelper:StringHelper = new StringHelper();
                        var output:String = event.target.standardOutput.readUTFBytes(event.target.standardOutput.bytesAvailable);
                             output = strHelper.trimBack(output, "\n");
                             output = strHelper.trimBack(output, "\r");
                        trace('"'+output+'"');
    The package that I used is from the manual:
    package utls
         public class StringHelper
              public function StringHelper()
              public function replace(str:String, oldSubStr:String, newSubStr:String):String {
                   return str.split(oldSubStr).join(newSubStr);
              public function trim(str:String, char:String):String {
                   return trimBack(trimFront(str, char), char);
              public function trimFront(str:String, char:String):String {
                   char = stringToCharacter(char);
                   if (str.charAt(0) == char) {
                        str = trimFront(str.substring(1), char);
                   return str;
              public function trimBack(str:String, char:String):String {
                   char = stringToCharacter(char);
                   if (str.charAt(str.length - 1) == char) {
                        str = trimBack(str.substring(0, str.length - 1), char);
                   return str;
              public function stringToCharacter(str:String):String {
                   if (str.length == 1) {
                        return str;
                   return str.slice(0, 1);
    And sorry for the miss topic I just realized that it is on flex topic, but I post it either way it may be useful for anyone

  • On start up I get the message "C:\users\login name\Appdata\local\temp\225704Log.in iiss Lost"

    on start up I get the message "C:\users\login
    name\Appdata\local\temp\225704Log.in iiss Lost"
    I've gorn though so many discussions on this trying to fix it I've
    do everything and it is still poping up every time i turn my desktop on what do i do?

    Hi,
    The suggestion provided by Maffiow is worthy to try. Msconfig can tell you some on things loaded on startup. Do any of the items listed refer to that file?
    In addition, it states that your windows 7 is missing some system files. And definitely it would be some important to file to your windows. You better check it with performing a Clean Boot.
    How to perform a clean boot to troubleshoot a problem in Windows 8, Windows 7, or Windows Vista
    http://support.microsoft.com/kb/929135
    The path which you have shown here is a path for temporary file. I think there will be something wrong with your system temp folder. For this Clear the redundant files in temporary folder. You can do this by performing the following steps.
    a. Restart the computer to Safe Mode.
    b. Click Start and click Control Panel.
    c. Click Classic View and choose Folder Options.
    d. Click View tab, choose Show hidden files and folders box, click Apply and click OK.
    e. Click Start -> Computer.
    f. Go to C:\Users\your user name\AppData\Local\Temp folder.
    g. Select all files in the Temp folder and delete them. Click Yes when prompted.
    h. Restart the computer to Normal Mode for a test.
    Hope it helps.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • I had renamed my user login name and assumed that there will be no change in the settings and files. When I login with the new profile name everything is gone. How can I get back all my files and settings?

    I had renamed my user login name and assumed that there will be no change in the settings and files. When I login with the new profile name everything is gone. How can I get back all my files and settings? Please help. Thanks.

    You should have asked this before you tried: Changing username or short name- User Account and Short Name- OS X- How to change user account name or home directory name.

  • Custom report to disvover duplicate login name and computer

    Hi all,
    I need to create a custom report which shows a same login name use on many computer in ZAM 7.5.
    could you please help me to choose the good option on a custom report creation ?
    Thank all,
    Frnchtch

    Here's one method using the Custom reports console. Not the best mind you but quick to setup if you just need results on who the dups are.
    Go to Custom reports
    Select New Report (Type = Workstation; Focus = Basic workstation attributes)
    In column selection place "Login Name"
    In summary criteria select "Workstation Instances (Summary) > 1
    Save with a name like "Duplicate Logins
    Run report
    HTH,
    Bryant

  • How can i delete a saved login name and password from facebook thats on my computer

    im wantin to delete someone that has saved their login name and password on facebook through my computer and i want it off

    See also:
    * http://kb.mozillazine.org/Deleting_autocomplete_entries
    * http://kb.mozillazine.org/Password_Manager

  • Help apple help me, at first I was new to iphone registration 1 apple ID account but because I hardly use icloud account. so I do not remember the password and login name, my computer crash when I decided to run the software on ios7.1, but do not expect m

    help apple help me, at first I was new to iphone registration 1 apple ID account but because I hardly use icloud account. so I do not remember the password and login name, my computer crash when I decided to run the software on ios7.1, but do not expect me to be locked iclou account, I hope this mail unlocked apple for my apple account. I'm currently using the machine iphone 5, IME: ********. thank you ... ask yourself? machine is in warranty period warranty icloud error not send mail to me at mail
    <Personal Information Edited by Host>

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • # How to get the system AD Domain user login name in portal?

    when a system user use AD Domain method login the system.
    and then the user open the portal web application page, but not use AD Domain name login in portal page, that time ,I want to catch the user system login name show in portal page?
    I hava try the sereval method with Java or Jsp, or User Cookies ActiveX pulg,I get only the name of the portal hostname.
    so Anyone will provider me a well method to get the user login name?

    Elobrate more on ur problem

  • Get Computer name and move

    Hi all ,
    i need help with small problem ,
    i tried to create new script that know get all computer names that start with " ISR..." And then move them to another ou ,
    i have 2 convention name on my organization name  , 1 - ISR , 2 -TLV  . 
    some computers :
    ISR2
    ISR3
    ISR4
    some computers :
    TLV2
    TLV3
    TLV3
     i tried this command "
    Get-ADComputer -Filter * {Name -Like "TLV,"}  Error :
    Get-ADComputer : A positional parameter cannot be found that accepts argument 'Name -Like "TLV"'.
    At line:1 char:15
    + Get-ADComputer <<<<  -Filter * {Name -Like "TLV"}
        + CategoryInfo          : InvalidArgument: (:) [Get-ADComputer], ParameterBindingException
        + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.ActiveDirectory.Management.Commands.GetADComputer
    or if have another option -command can read both computers name and then move them
    My Website:www.Pelegit.co.il Mcitp /Mcsa 2012

    Lol , My friend i dound that command in another website and it is  working but thank you so much ! 
    what about 2 differet name ? 
    Possible ?
    Get-ADComputer -Filter {Name -like "TLV*,ISR*"}
    My Website:www.Pelegit.co.il Mcitp /Mcsa 2012
    You would need separate statements like
    -Filter {(Name -Like "TLV*") -and (Name -Like "ISR*")}
    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
    Don't Retire Technet

  • HT4436 For the past two weeks, every time I start up my computer I'm asked for an iCloud login. I've never used iCloud and I'm not likely to. How do I get this login to stop automatically showing up?

    For the past two weeks, every time I start up my computer I'm asked for an iCloud login. I've never used iCloud and I'm not likely to. How do I get this login to stop automatically showing up? I'm using an iMac G5 with OS 10.9.4.

    One more quick thing first. Hold the SHIFT key this time as you startup and see if that gets you any further (this is called 'Safe Mode' by the way). I'm not too confident that this will work in your case but it's worth a try. If it boots up, go into Disk Utility and repair permissions.
    If it doesn't, you're going to have to do an Archive & Install which will install a fresh copy of the OS over the top BUT keep all your users, files and apps in place.

Maybe you are looking for

  • How do i get my Macbook Pro to communicate/link-up with the Apple TV when it's on ?

    Hi all, I have recently purchased a Macbook pro and Apple TV. The apple tv works fine from an i-pad, but i am not sure where on a Pro to go to get it to 'read' the apple tv ? Would be grateful for any help please......

  • ITunes Crash And Close Everytime Try To Connect To iPhone 3GS

    Hi as you see on my profile I'm using HP desktop 64bit windows vista home premium. So i download iTunes 64bit and installed it no problem on my system, Then connect my iPhone 3gs and iTunes start to making backup for first time, Then i update it to n

  • Get right or bottom co-ordinate of a symbol

    Is there any way to get the right & bottom position of a symbol (without adding left to width or top to height)? thx

  • Query1

    Hi All, I have this query which is giving the result what I need, but when i put the date selection criteria in the query, it throws error; "Must specify a table to specify from". Can anyone please tell me how do i get this query corrected?? SELECT T

  • Looking for a Xen Host Notebook

    I am looking for a notebook to run Xen with multiple VMs - Win, Linux, and Android. The CPU should have vT, i7, 16 GB RAM, 1 TB HDD, 256 to 512 GB SDD, and touch screen. Is there such a machine that will fully support Linux?