473,386 Members | 1,741 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

STOP Windows EXPLORER from loading at logon..

harshadd
176 100+
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
Mar 30 '08 #1
5 10600
questionit
553 512MB
Only subscribing.......
Mar 30 '08 #2
boy u need to try out tune up utilities install and then start up manager to disable amd enable any programme
Apr 4 '08 #3
harshadd
176 100+
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.exe 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.
Apr 4 '08 #4
AmberJain
884 Expert 512MB
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.................
Apr 16 '08 #5
harshadd
176 100+
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_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Replace the explorer.exe (or C:\Windows\explorer.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\runthisprogram.exe"
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_USER\Software\Microsoft\Windows NT\CurrentVersion\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("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

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

wscript.exe C:\invisible.vbs 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.
Apr 18 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Bob Everland | last post by:
I have an application that is ISAPI and the only way to secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to the ISAPI application no...
7
by: Mullin Yu | last post by:
if i put the same code at the windows application or console, i can logon to the computer. but, if i put the same code at the windows service and start it, i still can't logon to the machine. ...
0
by: Adrian Stovold | last post by:
I've written an ASP.NET application in VB.NET. It works fine on all Windows platforms and browsers, but there's a problem on the Mac version of IE (v5.1.5) running on Mac OS 9.2. I can reproduce...
5
by: drummerpunk10 | last post by:
Sorry if this is off topic, I haven't really used this forum a lot so I don't know where to put it. Anyways I have a game application that runs off a list games and users on a file, that I built in...
2
by: =?Utf-8?B?SnJ4dHVzZXIx?= | last post by:
I just started using Windows Live OneCare, I had been using Norton, but was unable to fix the problems I was having. I have yet been unsuccessful with OneCare as well. I keep getting the same...
4
Fary4u
by: Fary4u | last post by:
Hi i've found this problem for a long time but i thought i can live wd this but now it's giving me headack it's mostly happend when u got some problem on the network , after installation...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Description NOTE- If you are unfamiliar with the concept of autoruns, then read "Windows Autorun FAQs: Overview". Que-1: How can I safely remove or edit the autorun...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.