Announcement

Collapse
No announcement yet.

Login screen of last user and running a command

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Login screen of last user and running a command

    Hi

    In Windows 8, it is possible to run a command whenever the login screen of the last user is displayed in a local computer? This command should always be run with elevated rights and just before this screen appears.

    Thanks

    Bye
    balubeto

  • #2
    Re: Login screen of last user and running a command

    You could look into Scheduled Tasks.
    AFAIK "On Logon" would not do as it is after the logon has been performed, but since you can run a scheduled task "On Event" you should be able to find something that is fired at the correct point.

    If you can give us a clue what the command is supposed to do, a better solution may be available.

    Can you also explain a bit more when it is to run -- when the previous user has logged off (at which point the logon screen becomes available -- and a GP based logoff script may work) or just before a user is logging on?
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: Login screen of last user and running a command

      Originally posted by Ossian View Post
      You could look into Scheduled Tasks.
      AFAIK "On Logon" would not do as it is after the logon has been performed, but since you can run a scheduled task "On Event" you should be able to find something that is fired at the correct point.

      If you can give us a clue what the command is supposed to do, a better solution may be available.

      Can you also explain a bit more when it is to run -- when the previous user has logged off (at which point the logon screen becomes available -- and a GP based logoff script may work) or just before a user is logging on?
      In other words, I should change the value of a registry entry via a reg command before the last user login screen appears. In addition, this reg command should be run whenever this event occurs regardless of the type of account and of the cause that produced it.

      Thanks

      Bye
      balubeto

      Comment


      • #4
        Re: Login screen of last user and running a command

        Since the logon screen appears after the previous user has logged off, is there any reason a logoff script would not work?

        If not, identify an event that occurs after logoff and use that to trigger a scheduled task.
        Tom Jones
        MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
        PhD, MSc, FIAP, MIITT
        IT Trainer / Consultant
        Ossian Ltd
        Scotland

        ** Remember to give credit where credit is due and leave reputation points where appropriate **

        Comment


        • #5
          Re: Login screen of last user and running a command

          Originally posted by Ossian View Post
          Since the logon screen appears after the previous user has logged off, is there any reason a logoff script would not work?

          If not, identify an event that occurs after logoff and use that to trigger a scheduled task.
          you would probably also need to set it to trigger at startup, but before logon, just inc ase
          Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

          Comment

          Working...
          X