Welcome To Funfani. Please Login.

Login with username, password and session length




October 02, 2026, 07:36:43 PM
Funfani.com - Spreading Fun All Over!INFORMATION CLUBTechnical TipsHow do I change the shell for selected users.
Pages: Pages1
Print
Author Topic: How do I change the shell for selected users.  (Read 1,261 times)
0 Members and 1 Guest are viewing this topic.
Vatsal
Administrator
FF Trailblazer


Karma: 0
Offline Offline

Posts: 2,218


« on: December 27, 2005, 08:53:46 AM »

HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\
and replacing Explorer.exe with YourOwnShell.exe in the Shell value. This, however, is a global change and affects all users.

To effect only certain users, create a batch file %windir%\System32\userinit.bat in which you select the lucky users, running YourOwnShell.exe, but running Userinit.exe for everyone else. Edit:

HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\Userinit and replace Userinit with Userinit.bat. Do not change the Shell, leaving it as Explorer.exe. Here is a sample Userinit.bat (I have chosen to identify the "lucky" users by creating a %username%.lucky file on \\YourPDC\Lucky$ to which everyone has list permission, but you can choose whatever mechanism you wish):

@echo off
if exists \\YourPDC\Lucky$\%username%.lucky goto YourS
\\YourPDC\C$\winnt\system32\userinit.exe
goto end
:YourS
\\YourPDC\C$\winnt\system32\YourOwnShell.exe
:end
exit

If you mess up while testing this (I did) and only a partial desktop loads:

CTRL+ALT+DEL, choose Task Manager / File / New Task / userinit.exe.

Logged
Pages: Pages1
Print

Jump to: