Results 1 to 7 of 7
  1. #1
    2 Star Lounger
    Join Date
    May 2013
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 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

  2. #2
    2 Star Lounger
    Join Date
    May 2013
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  3. #3
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,203
    Thanks
    49
    Thanked 989 Times in 919 Posts
    You can run programs before your machine login prompt by adding a value to the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run. This will run the command when the PC starts with elevated privileges.

    What do you want to happen? We can suggest commands that will perform the task.

    cheers, Paul

  4. #4
    2 Star Lounger
    Join Date
    May 2013
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Paul T View Post
    You can run programs before your machine login prompt by adding a value to the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run. This will run the command when the PC starts with elevated privileges.

    What do you want to happen? We can suggest commands that will perform the task.

    cheers, Paul
    By chance, there is a registry key (or something similar), valid for all user profiles, which allows to run a reg command with elevated privileges that allows to modify the value of the Enabled entry of the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Aut hentication\LogonUI\UserSwitch key so that, whenever an any user that logs off the your account, change the value of this entry?

    Thanks

    Bye

  5. #5
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,203
    Thanks
    49
    Thanked 989 Times in 919 Posts
    If you want that value fixed I suggest you use local policy to set it, then users can't change it.

    cheers, Paul

  6. #6
    Super Moderator bbearren's Avatar
    Join Date
    Dec 2009
    Location
    Polk County, Florida
    Posts
    3,762
    Thanks
    26
    Thanked 424 Times in 338 Posts
    What is it that you want to accomplish?
    Create a fresh drive image before making system changes, in case you need to start over!

    "The problem is not the problem. The problem is your attitude about the problem. Savvy?"—Captain Jack Sparrow "When you're troubleshooting, start with the simple and proceed to the complex."—M.O. Johns "Experience is what you get when you're looking for something else."—Sir Thomas Robert Deware.
    Unleash Windows

  7. #7
    WS Lounge VIP Browni's Avatar
    Join Date
    Dec 2009
    Location
    Rochdale, UK
    Posts
    1,655
    Thanks
    38
    Thanked 161 Times in 139 Posts
    Have you thought of setting this registry value when a user logs off?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •