STOP Windows EXPLORER from loading at logon..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • harshadd
    New Member
    • Dec 2007
    • 180

    STOP Windows EXPLORER from loading at logon..

    For some reason I do not want windows [explorer.exe] shell to be loaded after user is logged in on (XP prof).
    Instead a program should start, and if that program is exit, controls should go back to LOGIN screen.
    where do i need to do changes for this?
    Rgds
    Harshad
  • questionit
    Contributor
    • Feb 2007
    • 553

    #2
    Only subscribing.... ...

    Comment

    • waqarbutt
      New Member
      • Mar 2008
      • 7

      #3
      boy u need to try out tune up utilities install and then start up manager to disable amd enable any programme

      Comment

      • harshadd
        New Member
        • Dec 2007
        • 180

        #4
        Thanks for your response, But this is not what exactly I want!! Rather to kill it or using 3rd part utilities, after getting started, can you suggest a way to NOT to start it only?
        I remember, Windows 3.1x used six .INI files to load and control the Windows environment (CONTROL.INI, PROGMAN.INI, PROTOCOL.INI, SYSTEM.INI, WIN.INI, and WINFILE.INI).
        If you changed PROGMAN.INI / load=explorer.e xe to some thing else, it used to load that program. I used to load filemngr.exe there.
        I want something similar to that in XP prof.

        Comment

        • AmberJain
          Recognized Expert Contributor
          • Jan 2008
          • 922

          #5
          A simple way to do this is to replace the original file [explorer.exe] with another file (rename new file to explorer.exe) which you wanna load instead of original [explorer.exe].

          So the new file (renamed as explorer.exe) will load instead of original.

          You may need any other OS (e.g. FreeDOS) to replace explorer.exe.
          _______________ _______________ _______________ _______________ _____
          HOPE THIS HELPS.......... .......

          Comment

          • harshadd
            New Member
            • Dec 2007
            • 180

            #6
            If it was so simple I would have not write it up here....
            I wanted only a particular user to prevent from loading explorer.exe. rest all users should get what they get.

            I did this by changing some registry values. read below:
            Explorer loads from the Shell value under the following registry location.
            HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows NT\CurrentVersi on\Winlogon
            Replace the explorer.exe (or C:\Windows\expl orer.exe, whichever it may currently be) Data entry with the path to another app and it will load instead. That will not however automatically log off the account when the program is closed. Tony is ontrack with using a batch to accomplish both. Create a batch with the following 2 lines, inserting the correct path and program executable name for the app you want to run.


            "C:\Program Files\Program\r unthisprogram.e xe"
            shutdown -l

            Lets say the batch is named runthis.bat and is located in the drive root of C:
            Modify the Shell value to read C:\runthis.bat


            Notice I took out the pause line. That is because it will cause the command window that opens when the batch is executed, to wait for a key press before executing the shutdown command. Notice also that the start command was taken out of the program line. That is because the start command will cause the batch to start the program then read the next line. Without the start command, it will run the program but wait for the program to close before executing the next line.

            Now, since this was done at the HKLM level, it will affect ALL user accounts. If you want to limit the behavior to a particular account only, blank the Shell value on the HKLM location, then go to;

            HKEY_CURRENT_US ER\Software\Mic rosoft\Windows NT\CurrentVersi on\Winlogon

            and create a REG_SZ (String) value named Shell then point it to the batch. Do this after first logging on to an account which you do NOT want affected and creating the HKCU Shell value that points back to explorer.exe

            Please note that this will not prevent the user from using Ctrl+Alt+Del to open the Task Manager and running whatever they can access via File>New Task, such as explorer or any other app they can browse to. You would need another registry hack or group policy to prevent the use of Ctrl+Alt+Del, or better yet, just prevent the use of Task Manager. Keep in mind you could lock ALL accounts from accessing anything if not done on a per user level.

            This will also allow the user to minimize the running program, which allows access to the batch file's command window, which will be running right behind it. Simply closing the command window will kill the batch and prevent account logoff when the program is closed, leaving just a blank window. You can start the batch minimized by adding the /min switch to the path entered for the Shell value, eg;

            Shell REG_SZ C:\runthis.bat /min

            Or, you can start the batch completely invisible. Save this one line of text as "invisible. vbs" in the drive root

            CreateObject("W script.Shell"). Run """" & WScript.Argumen ts(0) & """", 0, False

            To run the batch file invisibly, use the following line for the Shell value Data.

            wscript.exe C:\invisible.vb s C:\runthis.bat

            Windows Scripting MUST be installed for this to work (included in Windows 98 and later) and MUST be working. To test, click Start>Run and type wscript then hit Enter. A Windows Script Host Settings dialog should open.

            Comment

            Working...