15. How to get the last user logged into a computer with PowerShell

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 12

  • @AJOnuska
    @AJOnuska 5 лет назад +1

    Awesome! This just saved me a bunch of hassle. Thanks for spreading the wealth, bruh.

  • @lexwaldez
    @lexwaldez 4 года назад

    Thanks. Really easy for what i needed.

  • @kinahhalim8482
    @kinahhalim8482 3 года назад +1

    Is there a way, for me to have a complete list of computer and displayname for a user that using it?

  • @Sabs761010
    @Sabs761010 2 месяца назад

    hi, how can I get a list of the computers from AD with the user that has login into them?

  • @vaibhavpratap1325
    @vaibhavpratap1325 3 года назад

    How to get the ip address and timing of the different users ??

  • @HannahBananzi
    @HannahBananzi 6 лет назад

    Is there a way to find a users computername by searching username? Here is the scenario. Some of our clients are not comfortable with navigation to control panel to find computername. Is there a PowerShell command to search a username last machine logged it?

    • @HannahBananzi
      @HannahBananzi 6 лет назад

      Assuming I am the admin and user gives me username “Rey-1”.

    • @CyberAutomate
      @CyberAutomate  6 лет назад

      Not that I know of. But, almost anything is possible, it’s just a matter of figuring it out.

    • @Adam-vp5lc
      @Adam-vp5lc 6 лет назад

      If you have SCCM in your environment you can use the ConfigMan modules.
      docs.microsoft.com/en-us/powershell/module/configurationmanager/get-cmuserdeviceaffinity?view=sccm-ps
      Get-CMUserDeviceAffinity -UserName "DOMAIN\DHall"

  • @riyasck3664
    @riyasck3664 6 лет назад

    Dear, when i put the any domain joined computer name in the section of computer name, it is giving error that cannot find path and does not exist.
    Could you please tell me how i need to put the path of a domain joined computer from AD powershell?
    Thanks in advance

  • @ekpurdy
    @ekpurdy 5 лет назад +1

    get-eventlog system -ComputerName $variable -source Microsoft-Windows-Winlogon

  • @Datalore74
    @Datalore74 5 лет назад

    tried both and failed at both.