Windows 8 and 8.1 Forums


Login screen of last user and running a command

  1. #1

    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

      My System SpecsSystem Spec

  2. #2


    Posts : 480
    Windows 8 Pro x64


    Can you clarify the purpose of this? What's the root problem you're trying to solve?
      My System SpecsSystem Spec

  3. #3


    Quote Originally Posted by Vadikan View Post
    Can you clarify the purpose of this? What's the root problem you're trying to solve?
    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
      My System SpecsSystem Spec

  4. #4


    Posts : 480
    Windows 8 Pro x64


    In other words, it's still not clear what you're trying to accomplish in the end... So I guess we'll hear more specifics as you learn that our suggestions don't work.

    Give a scheduled task a try. The trigger must be set when system starts (as opposed to user logon).
      My System SpecsSystem Spec

  5. #5


    Posts : 165
    Windows 8


    Quote Originally Posted by balubeto View Post
    In other words, I should change the value of a registry entry via a reg command before the last user login screen appears.
    • You can run logon and logoff scripts with "Group Policy Editor":
      -> User Configuration | Windows Settings | Scripts (Logon/Logoff)
    • But "Group Policy Editor" is not available in Windows 8 - only in Windows 8 PRO
    • In your case you can't use the logon script option, because this script is running after login
    • But you can use the logoff script option - then the registry change is available for next login
      My System SpecsSystem Spec

  6. #6


    Posts : 480
    Windows 8 Pro x64


    @NiFu
    The TS listed "Windows 8" in his specs, so logoff scripts would be a very long shot. That's the reason I haven't mentioned it. But it doesn't look like the TS is interested in solving his problem anyway
      My System SpecsSystem Spec

  7. #7


    Posts : 165
    Windows 8


    Quote Originally Posted by Vadikan View Post
    The TS listed "Windows 8" in his specs, so logoff scripts would be a very long shot.
    1. Some users don't make much difference between "Windows 8" and "Windows 8 Pro" in their specs.
    2. Perhaps other user who read the thread can use the tip.
      My System SpecsSystem Spec

Login screen of last user and running a command
Related Threads
Hi, Is it possible to change the background of user login screen in windows 8.1.1 like the attached Photoshoped image?? 49600
Solved Changing the local user login name on the login screen in User Accounts and Family Safety
Hello nice people ! Windows is asking me for a password despite I've never had a password. Here's what happened: I've never had a password and choose during the win install to have 1 local account without password. I used to have a user/login name with an non ascii character (), and it...
Login screen account list only shows last domain user in User Accounts and Family Safety
I have a domain setup at home, and after joining a PC to the domain and migrating profiles to the domain profiles, the login screen account list only shows one user (the last to login) and Other User. I have already used the method in this thread:...
Hi all, I have copied my games from my Windows 7 pc to my Windows 8 laptop, but allot of my games aren't working, I have noticed that the games I'm trying to run don't have compatibility tab under the properties tab. I own these games through steam, and LAN versions, the steam version runs fine the...
Can I make all user accounts display at login screen? in User Accounts and Family Safety
I'm on HP laptop 2000-2d27dx Win8.1. My login screen shows only one user account. I have to click on arrow to switch to other existing user accounts. Is there a way to display all user accounts at login screen? Thanks.
At login screen Hide Guest User (Windows 8.1 RTM) in User Accounts and Family Safety
Hi there I'm using Windows 8.1 Enterprise RTM At the login screen I see my user ID and a Guest user. Can I hide the guest user at login screen - I only want to see my user. I DON'T want to boot in bypassing the sign on screen. (Note this is NOT the same as booting direct to desktop !!!). ...
I posted this question earlier but I fixed the problem. Now the answer to what I'm looking for is how can I stop avast from making a black screen popup. I used this tutorial- How to solve Windows 8 black screen problem after login | Ask4pc It didnt work. Anything else that will work?
Eight Forums Android App Eight Forums IOS App Follow us on Facebook