Query all users when they last logged on?

Hi,
how can I run a script to query all users to see when they last logged on. I want to be able to select a cut off date to exclude current users.
Any ideas?
Thanks
Paul

Try using the 'last' command from the Terminal, or read the wtmp logs directly.
(33318)

Similar Messages

  • How to set status to how it was when you last logged out?

    I use AIM in iChat 5.0.3. It used to be that when I clicked on my iChat icon to start it up, my status would automatically be set to whatever it was when I last logged out (available, away, etc.) and the username and password window would pop up by itself and I would just need to enter my password to log in. Now, whenever I start up iChat, my status is always set to offline and I always have to click the drop down status menu bar and click available to get the login window to appear.  In my Preferences -> General tab, I've tried "At user login, set my status to Available" both checked and unchecked and neither option has worked. How do I get set it to how it was before so that I don't have to click anything in order for the login window to appear?

    Hi,
    In iChat Preferences you need to change two settings
    In the General Pane is one about changing the Status to Availble at iChat Start.
    The Default is for this to be checked and unchecking it makes your Buddy List login with the last Status set.
    The other is in the Accounts section.
    Highlight your account
    On the right select Account info tab
    Check the Box that Says "Use this Account"
    If the Accounts Info tab has no Password set you will now get the pop up that asks for it and the Status should be what you last set it as.
    9:21 PM      Wednesday; August 3, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Not all users are displayed for log on after a reboot or startup...

    Problem summary: Not all users are displayed for log on after a reboot or startup...
    This problem only occurs after a fresh start-up or restart. The only users displayed are the initial (admin user) and "Guest". Two other (non-admin) users are not shown for log on.
    To work around this problem and get them to log on we have to log on as the admin user, then we can see the other users in the Fast User Switching menu (top right-hand corner of the screen), listed under the current logged on user. After selecting the non-admin user we can log in and use the laptop as normal.
    If we lock the screen, use fast user switching or log out all users; all users are available for log in, until a reboot is done; at which point the non-admin users disappear again and we have to log in as the admin user and use fast user switching again.
    The laptops are both brand new MacBook Airs. The initial configuration of Mac OS X Yosemite was done using the Apple ID of the purchaser (parent) and then the OS was patched, immediately, through the App store (no further updates available as of the date of this posting). After this Family Sharing was activated and new users set up for the two children who will be using these laptops.
    Has anybody else experienced this problem with Yosemite?
    Cheers,
    David.

    David,
    Users not enabled for FileVault unlock are only able to log into the computer after an unlock-enabled user has started or unlocked the drive. Once unlocked, the drive remains unlocked and available to all users, until the computer is restarted.
    FileVault has to be On.
    To Enable the users to be able to unlock FileVault Go to:
    System Preferences > Security & Privacy > FileVault ( Tab ) > Click the Lock in the bottom left > Put in your administrator password > Should see an option to Enable Users > Enable User.
    Hope that helps,
    Weston
    Supporting Articles,
    OS X: About FileVault 2 - Apple Support

  • How do I show the details of a customer when they are logged in a secure zone?

    How do I show the details of a customer when they are logged in a secure zone?
    I want to show the customer details as well as some customer CRM fields that are applied to the customer. None of these are entered via a form, they would be entered by the client. The customer would need to be able to log in to view the information and get an email alert when it is updated. Help!?

    Hi,
    You might want to look into customer service zones which allows customers once logged in to see their case, order and own details. 
    - http://kb.worldsecuresystems.com/133/bc_133.html
    - http://kb.worldsecuresystems.com/kb/customer-service-area-orders.html
    - http://kb.worldsecuresystems.com/kb/allowing-customers-view-update-crm.html
    Kind regards,
    -Sidney

  • Scripts for changing the address of the user when they have been in the box for 6 months

    Scripts for changing the address of the user when they have been in the box for 6 months
    If users are in a folder for deactivated users and disabled users in Active Directory, and been there for 6 moths do: change email address in exchange to existing email address.old 
    Anyone have suggestions on how I can go about it?

    What is this "box"?  What is this "folder" you're asking about?  You'll likely get a better answer if you use standard terminology.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • HT204150 I currently have 14,181 contacts that are on my computer, which an apple tech was nice enough to show me how to transfer all my contacts  from my mac 2 "iCloud " account all though when ever I log into my "iCloud" account it still only shows 13,0

    I currently have 14,181 contacts that are on my computer, which an apple tech was nice enough to show me how to transfer all my contacts  from my mac 2 "iCloud " account all though when ever I log into my "iCloud" account from a different web browser it still only shows 13,032. Meanwhile on my mac book pro, the "icloud" contact is still spinning like its trying to update the rest of the missing contacts. I have let the computer run for 2 days straight and still no progress. Is there a limit to how many contacts I store on "iCloud" I have upgraded to the extra 25 gigs per year. If anyone has any advice I would greatly appreciate it, because its also slowing down my mac book pro significantly causing it hard to do any other task on my computer....Any advice or help would be again greatly appreciated.

    On the surface, it doesn't sound like you're reaching a limit in the number of contacts you can have.
    I would first create a contacts archive (file >> export) for a backup.  Then, go to system preferences >> icloud and uncheck contacts.  Reboot.  Return to those preferences and recheck contacts.
    Also, review http://support.apple.com/kb/HT4489 just in case you have some contact cards that are reaching a different limitation.

  • Some users are having access to all mailboxes when they configure thier outlook

    for 7 users the get access to all mailboxes so when they configure their outlook profile they get about 700 mailbox so outlook hangs this happens with new created users the same 7 users will get access to them as will 
    i tired this
    Get-Mailbox | Remove-MailboxPermission -User Administrator -AccessRights Fullaccess -InheritanceType all
    nut then i got this
    An inherited access control entry has been specified CreateChild ControlType Allow
    then o tried removing from the DB level
    Remove-Adpermission "DB" -user "jobs" -extendedrights Receive-As
    Remove-Adpermission "DB" -user "jobs" -extendedrights send-as
    Remove-Adpermission "DB" -user "jobs" -extendedright ms-Exch-Store-Admin
    but stilll the same

    hi thank you, looks i need some more detail on how to do this
    i saved the lines on a .ps1 file tried to run it on exchange and i got the below , can you illustrate more how to do this
    The operation couldn't be performed because object 'sharedmailbox' couldn't be found on 'DC.mydomain.com'.
        + CategoryInfo          : InvalidData: (:) [Get-MailboxPermission], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : E61E2EBE,Microsoft.Exchange.Management.RecipientTasks.GetMailboxPermission
    Cannot bind argument to parameter 'Instance' because it is null.
        + CategoryInfo          : InvalidData: (:) [Remove-MailboxPermission], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Remove-MailboxPermission
    Cannot bind argument to parameter 'Identity' because it is null.
        + CategoryInfo          : InvalidData: (:) [Add-MailboxPermission], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Add-MailboxPermission

  • How to pop up a system message for a specific user when She/He log on SAP

    Hi Friends,
    As we know SM02 setting will pop up a system message to all users in specific client in a specific period when the user log on SAP system; and we can do the same thing via using function module SM02_ADD_MESSAGE.
    But now we want to pop up a message to a specific user ID when somebody log on SAP via this ID, instead of all user IDs in the client. Please do we have any similar traction / function module / class method to to do this job??
    Thanks in advance.
    Joe

    Below code can be used to send a pop up message to all users who are logged on to the
    system.
    DATA: MESSAGE(128) VALUE 'Test message'.
    DATA: OPCODE TYPE X VALUE 2.
    DATA: BEGIN OF USR_TABL OCCURS 10.
    INCLUDE STRUCTURE UINFO.
    DATA: END OF USR_TABL.
    CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE
    ID 'TAB' FIELD USR_TABL-SYS.
    LOOP AT USR_TABL.
    CALL FUNCTION 'TH_POPUP'
    EXPORTING
    CLIENT = SY-MANDT
    USER = USR_TABL-BNAME
    MESSAGE = MESSAGE
    EXCEPTIONS
    USER_NOT_FOUND = 1.
    ENDLOOP.
    In the above code just pass the desired user ID instead of All user ID's
    Edited by: harsh bhalla on Mar 26, 2009 2:14 PM

  • Acrobat Reader Xi Crashes for Multiple users when they attempt to "Save As"

    I have multiple users here running Windows 8  and Acrobat Reader Xi (11.0.05) and when they click 'save as' to save a PDF they are viewing, acrobat crashes every time.
    Is there a resolution to this crashing probelm ?
    I have tried uninstalling (using the cleanup tool as well) and reinstalling the program,
    I have tried rolling back to an earlier version of Xi
    So far nothing has worked.  
    Any insight or resolution would be greatly appreciated.

    Uninstalled Reader 11.0.5
    Ran the Acrobat cleanup tool v2
    Installed Acrobat reader 11.0.6
    Still have the same issue.
    Narrowed this down to PDF files that are opened from a network drive.
    If I copy the PDF to the local Drive of the PC I can open it and "save as" successfully.
    If I open the PDF from the mapped network drive, and then "save as"  Acrobat reader crashes every time.
    Unfortunately we do all our work from the Shared Network Drives not from our local PC's

  • Javascript: Query all users with read permission to specific list

    Is it possible to use javascript to retrieve all users with read permissions to specific list? This (http://www.c-sharpcorner.com/UploadFile/anavijai/how-to-get-all-the-users-from-site-group-in-sharepoint-2013/) shows how to get users from group but what
    about list. All users in list may not exist in spgoups.

    Hi,
    If with Server Object Model which is executed in server side, in the
    SPList object, there is a
    RoleAssignments property can help to get what you want without looping through all the users in site:
    public static void getPermissionsOfList()
    using (SPSite site = new SPSite("http://sp"))
    using (SPWeb web = site.RootWeb)
    SPList list = web.GetList("/Lists/List1");
    SPRoleAssignmentCollection roles = list.RoleAssignments;
    foreach (SPRoleAssignment role in roles)
    Console.WriteLine("~");
    Console.WriteLine("Name: " + role.Member.Name);
    SPRoleDefinitionBindingCollection bindings = role.RoleDefinitionBindings;
    XmlDocument doc = new XmlDocument();
    doc.LoadXml(bindings.Xml);
    //Console.WriteLine(doc.InnerXml);
    XmlNodeList itemList = doc.DocumentElement.SelectNodes("Role");
    foreach (XmlNode currNode in itemList)
    string s = currNode.Attributes["Name"].Value.ToString();
    Console.WriteLine("Permission Level: " + s);
    However, when comes to JavaScript Client Object Model, as there is no such property provided, I suggest you take the solution provided in my previous post for a try.
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Disconnect wireless users when they leave the building

    Hi!
    I wanted to know is  there any functionality or solution that drops wi-fi users automatically when they leave permitted area, for example when they go out of the shop? This is for restriction of unwanted connections from outside the building to guest wi-fi.
    Best wishes, Zhomart

    You would have to really survey the area to see where the access points can be placed and then what power should they be. The issue you will face is that the 5ghz attenuate's faster than the 2.4ghz so this might be tricky. Your coverage toward the exterior walls will be poor for your users and that's not a good thing. All you really can do is buy window film that blocks rf and or paint that blocks rf. This will also affect your cellular, etc.
    Sent from Cisco Technical Support iPhone App

  • How do you set default programs for all users when deploying Windows 8.1?

    I have my Windows 8.1 image set up the way I want including the start screen, theme, etc. But how can I set the default programs for all users. Most of out computers are non-touch and I want the desktop apps (e.g. Windows Photo Viewer), not the store apps
    to be the default for opening pictures, videos, etc. Can that be done?

    Great question, this has been bugging me too!
    So, I did some research by using "Set Default Programs" app in Windows 8. Then I ran the super ProcMon.exe tool from Sysinternals.com <Thanks Mark!>
    After filtering out the junk, I could see some *interesting* writes to the registry:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpg\UserChoice]
    "Hash"="57y87/ogggU="
    "ProgId"="PhotoViewer.FileAssoc.Jpeg"
    But the "Hash" part had me concerned. I did some internet searching for the hash, and came across a post and a pointer to a blog with some answers.  This is both good news and bad.
    Background:
    One of the problems with Windows XP is that any program can come in and party on the entire system. No, I don't want you to put a shortcut on the desktop, install a crappy IE Toolbar, and change the default file association for *.jpg files to your app, I
    just wanted to play a stupid game. Since Windows 7, Microsoft has been attempting to block that functionality from the stupid applications, and give them back to the user. Take note of the last line in the ITaskbarList3 interface:
       Applications cannot programmatically pin themselves to the taskbar. That functionality is reserved strictly for the user.
    Of course that sucks for us IT Pros who may wish to create *default* working environments for corporate images, but there are some tricks we can do.
    Solution:
    This blog appears to have the answer:
    http://blogs.technet.com/b/mrmlcgn/archive/2013/02/26/windows-8-associate-a-file-type-or-protocol-with-a-specific-app-using-a-gpo-e-g-default-mail-client-for-mailto-protocol.aspx
    New for Windows 8 is a dism command: /Get-DefaultAppAssociations that allows you to export a control case from a known good computer. Microsoft the supports importing the exported xml file via GPO. For example, before I changed the file association, .AVI
    was pointing to the Modern App, after the change the /export-DefaultAppAssociations shows change to the new app:
    From:
    <Association Identifier=".avi" ProgId="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt" ApplicationName="Video" />
    To:
    <Association Identifier=".avi" ProgId="VLC.avi" ApplicationName="VLC media player" />
    I am still doing some investigation to see if a GPO is required, or if you can inject the association into a local user account. Also, if you do have some Modern Windows 8 Touch Tablets, it would recomend keeping most of the Modern App defaults in place,
    perhaps seperate GPO's for Desktops/Laptops vs Tablets?
    -k
    Keith Garner - keithga.wordpress.com

  • How do I display peronalized photo recordsets for seperate users after they have logged in?

    Hi everyone,
    I am using Dreamweaver CS3, MacBook Pro Leopard 10.5.6 and MAMP 1.7.
    I have created a login system using the instructions from David Powers book The Essential Guide to Dreamweaver CS3, for a photgraphy website.
    I have uploaded two pages from my login system login_success.php and username.php.
    I am trying to achieve a situation where after the client has logged in successfully, they will be presented with a recordset of their own personal wedding photo's filtered from the image filenames in the database.
    The username.php page is displaying one set of wedding photo's for client A, however when I click on client B's username listed in the list menu, then click the link for username.php, client A's photo recordset is still displaying, not client B.
    How can I get the right photo recordset to display for the right client? Do I have to create separate recordsets for all of the different clients photos?
    Please could someone help me with this, as I am going round in circles.
    Thanks for your time.

    Heya,
    read your thread title; got the just of your desire and disregarded your post. Use a filtered recordset filtered by session variable of MM_username to differentiate between logged in-users info displayed on page. So database table should have a column for username id and you simply filter your recordset based off the session variable of the user id and there you go - your recordset results will be displayed based off logged in users' id.

  • Certain drives are grayed out from the user when they try to access files

    I partioned the main HD with SL server. The main partition holds the OS and other related software, left plenty of space for growth. The second partition I created 2 folders that have in one Indesign files, the other images. When certain users try to log in it's grayed out as if it's mounted on the desktop, which it's not. When try again it shows up. All other volumes that are not part of the partition have no problems. Could it be the fact that Im using the Main HD partioned? This problem is occurring when the designers need to gain an image to place in Indesign.

    I'd be looking at permissions issues first.

  • How to notify users when they are timed out?

    So I am a developer for fortune 500 company and the network infrastructure team came to me with an odd request for an application that taps into Anyconnect. I find it hard to believe that this functionality doesn't exist.
    So here is the scenario. We have Anyconnect set up to not have an idle timeout. However we have it set up to disconnect after 12 hours.
    Here is the problem. When the end user meets that 12 hours, it just disconnects on them. There are no warning messages, no messages they have been disconnected. Just the connection is terminated.
    So my question is there any way to set this up to notify the user they have been disconnected and need to reconnect. Is there a way to notify them in advance that they will be disconnected in say 30 minutes?
    They want me to create an application that periodically checks the connection time by executing
    C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client>vpncli stats traffic
    Getting the time connected then if they are nearing the timeout time then start presenting the user with a warning.
    So that's basically my question. Is there no way to set this up in Anyconnect? If we are supposed to see these messages is it something our team might have disabled?
    We are using Anyconnect 3.1.01065 on Windows XP and Windows 7

    >> You don't have an idle timeout but will force disconnect after 12 hours? Does this really makes sense?
    Actually yes, at least in our environment. Using Citrix applications and VT Terminal applicaitons they need a constant connection. If the user disconnected say via an Idle Timeout then their sessions into these applications can and will hang. Not only that the older VT terminal sessions if hung durring a process that locks records or tables then it is locked for everyone. They have to call our helpdesk and have them kill the user. Citrix gets a little wacky as well if the user just blinly disconnects. So idle timeouts are actually a bad thing. Also a user might through a terminal session or though a citrix connection start a long run transaction. For example a blueprint sent off to a render farm could take 3-4 hours to render some have even take 10 hours. So a user may start a process and then go away especially on the weekend.
    So while there are issues with the internet in general that can cause disconnects most of this software will try reconnecitng from the server to the client everal times before finally giving up. So a quick break in internet connectivity is not an issue, a idle timeout where it doesn't reconnect until the user returns doesn't work.
    Thanks for the link though, that will help

Maybe you are looking for

  • Migrating Deprecated Code in 9.2

    Hi all, I have begun an attempt at removing as much (if not all) of the code in this legacy project I have been working on that has been deprecated by 9.2 from v8.x. I am currently having two issues: 1) Our code is acting on the type of the Node. In

  • Override standard user login with the admin login

    I remember that on Snow Leopard when a standard user log in and screen lock, an admin user could unlock that. How to do this in Lion? Cheers

  • Full Battery Drain Overnight while Powered Off. -Defective Unit or?

    I bought a new iPod Classic 80gb over the weekend and had charged it the same day via the included USB cable... Powered it off in the evening before going to bed by holding the play/pause button until the screen went black and I wake up the next morn

  • Read-only forms work great - page fails to load on interactive form.

    we have a weird issue. we moved all our Adobe development (which was all new) to our QA environment. Our 1 interactive form fails to even display, while all the other read only forms work fine. I changed my interactive form to ENABLED off (unchecked)

  • Test macbook pro for issues

    Buying a 2nd hand macbook pro the seller tells me the hard disk is bad and apple have check the host out and that is the only thing wrong with it, what software test can I burn to check the laptop out before buying it. I recall there was some softwar