Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. workstation autolock after autologin?

workstation autolock after autologin?

Scheduled Pinned Locked Moved System Admin
helpquestion
15 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Lost User

    Dave Kreskowiak wrote:

    Set the screensaver to activate after 30 seconds

    The minimum value is 1 minute (60 seconds) only :)

    T Offline
    T Offline
    T1TAN
    wrote on last edited by
    #4

    I'm afraid that's not good enough, we all know that 60 secs is quite a long time, and I need the workstation to lock itself immediately after login.:sigh: Another option would be to run my apps as windows services, but I wouldn't know how to do it properly.:doh: --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.

    D 1 Reply Last reply
    0
    • T T1TAN

      I'm afraid that's not good enough, we all know that 60 secs is quite a long time, and I need the workstation to lock itself immediately after login.:sigh: Another option would be to run my apps as windows services, but I wouldn't know how to do it properly.:doh: --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #5

      Easy enough. Write a little app that P/Invokes the Win32 API function LockWorkStation[^], preferrably in C++. It'll be a very short little app. Put a shortcut to this little .EXE in the Startup folder of the user ID that's going to be logged in. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      T 1 Reply Last reply
      0
      • T T1TAN

        Hi everyone, this is my problem.. I recently got a 24/7 internet (cable) connection, and I'd like to use it 100% by keeping my PC running 24/7, even when I'm away for the weekend. To make it simple: I need to enable autologin to my account, run some apps (for downloading) and then lock the workstation so my roommate can't mess with my personal files. My OS is WinXP SP2, if that matters at all.:) Is there a way to do this without buying some specialized apps?? Every idea is welcome :) --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.

        G Offline
        G Offline
        Gavin Taylor
        wrote on last edited by
        #6

        Following on from what Dave was getting at in the above thread, you could always just create a shortcut under the Explorer startup group to run the command line:

        rundll32 user32.dll LockWorkStation

        Gavin Taylor w: http://www.gavspace.com -- modified at 1:56 Monday 23rd January, 2006

        T 1 Reply Last reply
        0
        • D Dave Kreskowiak

          Easy enough. Write a little app that P/Invokes the Win32 API function LockWorkStation[^], preferrably in C++. It'll be a very short little app. Put a shortcut to this little .EXE in the Startup folder of the user ID that's going to be logged in. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          T Offline
          T Offline
          T1TAN
          wrote on last edited by
          #7

          That seems good.:) BUT, (there has to be one) I believe this won't be password protected lock then? Since I need to disable login password if I want windoze to autologin. Or, did I get it wrong?:doh: --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.

          D 1 Reply Last reply
          0
          • G Gavin Taylor

            Following on from what Dave was getting at in the above thread, you could always just create a shortcut under the Explorer startup group to run the command line:

            rundll32 user32.dll LockWorkStation

            Gavin Taylor w: http://www.gavspace.com -- modified at 1:56 Monday 23rd January, 2006

            T Offline
            T Offline
            T1TAN
            wrote on last edited by
            #8

            This would also work, but my question above still remains: is this really going to secure my PC if I have to disable login passwords in order for autologin to work?? X| --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.

            G D L 3 Replies Last reply
            0
            • T T1TAN

              This would also work, but my question above still remains: is this really going to secure my PC if I have to disable login passwords in order for autologin to work?? X| --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.

              G Offline
              G Offline
              Gavin Taylor
              wrote on last edited by
              #9

              Grab a copy of TweakUI[^] and you should be able to automatically set which user you want windows to login as and theres an option to specify a password as well. Gavin Taylor w: http://www.gavspace.com

              T 1 Reply Last reply
              0
              • G Gavin Taylor

                Grab a copy of TweakUI[^] and you should be able to automatically set which user you want windows to login as and theres an option to specify a password as well. Gavin Taylor w: http://www.gavspace.com

                T Offline
                T Offline
                T1TAN
                wrote on last edited by
                #10

                I've found some registry keys[^] to do just that (I suppose TweakUI uses them too), thanx for your fast reply ;-) These are the keys: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\ AutoAdminLogon = 1 DefaultDomainName = [Domain name] DefaultUserName = [User name] DefaultPassword = [Password] --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.

                1 Reply Last reply
                0
                • T T1TAN

                  That seems good.:) BUT, (there has to be one) I believe this won't be password protected lock then? Since I need to disable login password if I want windoze to autologin. Or, did I get it wrong?:doh: --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #11

                  Yep, you got it wrong. Autologon and Locking the workstation will not affect the screen saver. When the screen saver kicks in, the workstation will still be locked. You'll still have to unlock it to use the machine. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                  1 Reply Last reply
                  0
                  • T T1TAN

                    This would also work, but my question above still remains: is this really going to secure my PC if I have to disable login passwords in order for autologin to work?? X| --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #12

                    T1TAN wrote:

                    I have to disable login passwords in order for autologin to work??

                    Where was this mentioned???? No one said anything about this. You can't disable login passwords anyway, so I wondering where this came from. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                    T 1 Reply Last reply
                    0
                    • D Dave Kreskowiak

                      T1TAN wrote:

                      I have to disable login passwords in order for autologin to work??

                      Where was this mentioned???? No one said anything about this. You can't disable login passwords anyway, so I wondering where this came from. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                      T Offline
                      T Offline
                      T1TAN
                      wrote on last edited by
                      #13

                      Sorry, I was reading a completely irrelevant MSDN article, and things got a bit messed up in my head :-O --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.

                      1 Reply Last reply
                      0
                      • T T1TAN

                        This would also work, but my question above still remains: is this really going to secure my PC if I have to disable login passwords in order for autologin to work?? X| --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #14

                        Try this idea: Refer to http://www.codeproject.com/script/comments/forums.asp?forumid=1644#xx1344036xx[^] create a shortcut to the startup folder. When your computer autologin, it will lock your computer immediately. But you have to configure your download manager first.

                        1 Reply Last reply
                        0
                        • T T1TAN

                          Hi everyone, this is my problem.. I recently got a 24/7 internet (cable) connection, and I'd like to use it 100% by keeping my PC running 24/7, even when I'm away for the weekend. To make it simple: I need to enable autologin to my account, run some apps (for downloading) and then lock the workstation so my roommate can't mess with my personal files. My OS is WinXP SP2, if that matters at all.:) Is there a way to do this without buying some specialized apps?? Every idea is welcome :) --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #15

                          This script[^] is create the file shortcut to lock the desktop. You can customize it to lock the desktop only and configure this script as log on script. Then your computer will be locked immediately after it pass an auto login process. You don't need to wait for a screen saver and lock the system.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups