Change shell for user windows

September 20, 2010 · 9:34 am

Hi All,

In widows OS normally the shell program is Explorer.exe that contains the desktop and task manager

If you want to change this shell so that you can set a particular program as the shell program for users

There after that program will launch when an user logged in to the OS

To do …

Changing the default shell (all users):

1) open regedit (start menu > run, and type in regedit)
2) go to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon.
3) Change Shell from explorer.exe to the new shell path
e.g C:\your prgm dir\yourprogram.exe.

4) log out and log back in.

Changing the default shell (only current user):

1) open regedit (start menu > run, and type in regedit).
2) go to: HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon.
3) add a new string value (Edit > New > String Value) called shell. and set the value to the path of the new shell
e.g C:\your prgm dir\yourprogram.exe.

4) log out and log back in

I tried using the tutorial listed here and it should have worked, but it didn’t. I checked my spelling, my registry paths, and my values three times, and I followed every step correctly but it didn’t work. For some reason it’s still going to the key located in HKLM (Local Machine) instead of HKCU (Current User) even though I changed the shell value located in Software\Microsoft\Windows NT\CurrentVersion\IniFileMapping\system.ini\bootto USR:Software\Microsoft\Windows NT\CurrentVersion\Winlogon

It doesn’t make any sense why it isn’t working.

Note: I’m trying to remove the shell completely for one user on the computer but no one else. Also, I did make sure I was logged onto the right user when I changed the shell value in HKCU.

I’m using Windows XP SP3

I need to create a special account on a computer running Windows 10 Enterprise. This account would launch an application directly on login instead of the default shell and exiting the application should force the computer to restart.

I was able to do this easily on Windows 8.1 Embedded Industry Pro using the configuration console and lockdown features.

Now, on Windows 10 I try to follow the two tutorials on technet WESL_UserSetting and Set up a kiosk on Windows 10 Pro, Enterprise, or Education

However, neither of the tutorials work. I have managed to execute the scripts described in them but they have no effect (I’ve modified them so they do not remove the shells set).

Finally I’ve ended up with the following code:

$COMPUTER = "localhost"
$NAMESPACE = "root\standardcimv2\embedded"
$ACCOUNT_NAME = "cmp"

$ShellLauncherClass = [wmiclass]"\\$COMPUTER\${NAMESPACE}:WESL_UserSetting"


$NTUserObject = New-Object System.Security.Principal.NTAccount($ACCOUNT_NAME)
$NTUserSID = $NTUserObject.Translate([System.Security.Principal.SecurityIdentifier]).Value

$NTUser_Shell = Get-WmiObject -namespace $NAMESPACE -computer $COMPUTER -class WESL_UserSetting | 
    where {$_.Sid -eq $NTUserSID}

if ($NTUser_Shell) {
    "`Custom shell already set for [$ACCOUNT_NAME] removing it"
    $ShellLauncherClass.RemoveCustomShell($NTUserSID)
}

$restart_shell = 0
$restart_device = 1
$shutdown_device = 2

$ShellLauncherClass.SetCustomShell($NTUserSID, "cmd.exe", ($null), ($null), $restart_device)

"`nCurrent settings for custom shells:"
Get-WmiObject -namespace $NAMESPACE -computer $COMPUTER -class WESL_UserSetting | Select Sid, Shell, DefaultAction

Executing this script in an admin powershell produces the desired output:

Custom shell already set for [cmp] removing it

Current settings for custom shells:

Sid                                            Shell   DefaultAction
---                                            -----   -------------
S-1-5-21-3842421150-1098587697-2315725148-1002 cmd.exe             1

However logging as the ‘cmp’ user simply shows the standard Windows 10 shell.

What should I change in order to be able to run a program instead of a standard shell?

Change Default Shell in Windows Terminal Open Windows Terminal of your PC. Click the arrow icon in the title bar and select Settings. Expand the Default profile drop-down list. Select a utility. Click the Save button.

How to Change the Default Shell in Windows Terminal When you open Windows Terminal, PowerShell launches as your default shell. On the Windows Terminal window, click the down-arrow icon at the top and select “Settings.” Windows asks how you want to open the settings file.

How do I change shells in Windows 10?

To set a custom shell, you first turn on the Shell Launcher feature, and then you can set your custom shell as the default using PowerShell or MDM.Enable Shell Launcher feature Go to Control Panel > Programs and features > Turn Windows features on or off. Expand Device Lockdown. Select Shell Launcher and OK.

How do I change the default terminal in Windows 10?

How to Change Default Terminal Application in Windows 10 Open a new Command Prompt or PowerShell window. Right-click the title bar and select Properties from the menu. Switch to the Terminal tab in the Properties dialog. Under Default Terminal Application, select either Windows Console Host or Windows Terminal.

How do I make my shell default?

How to Change my default shell First, find out the available shells on your Linux box, run cat /etc/shells. Type chsh and press Enter key. You need to enter the new shell full path. For example, /bin/ksh. Log in and log out to verify that your shell changed corretly on Linux operating systems.

What is the default shell in Windows 10?

The default shell is set to Cmd.exe, but you can specify any executable file to be the default shell. You can configure Shell Launcher to launch a different shell for specific users or groups if you do not want to run the default shell.

How do I change my default command prompt?

The method in this How-to shows, in my opinion, the most direct and easiest way to change your default path. Step 1: Open the Command Prompt’s Location. On the start screen / menu, type in cmd, right-click it and select Open File Location. Step 2: Open the Command Prompt Properties and change the “Start In” Property.

Can we run shell script in Windows?

With the arrival of Windows 10’s Bash shell, you can now create and run Bash shell scripts on Windows 10. You can also incorporate Bash commands into a Windows batch file or PowerShell script.

How do I change Windows terminal settings?

Open Windows Terminal and click on the down arrow in the title bar (just to the right of the plus symbol), and then choose “Settings.” A JSON file will launch in the editor you choose earlier. You can make all changes here.

What is Windows shell mode?

The Windows shell is the graphical user interface for the Microsoft Windows operating system. Its readily identifiable elements consists of the desktop, the taskbar, the Start menu, the task switcher and the AutoPlay feature.

What is the default terminal in Windows?

You can now make the Windows Terminal experience the default application to open PowerShell and Command Prompt, and here’s how. Windows Terminal can be set as the default app for launching PowerShell and Command Prompt. Windows Terminal: Open Settings > Startup > Default terminal application > Windows Terminal.

Where does Windows Terminal install?

Terminal (stable / general release): %LOCALAPPDATA%\Packages\Microsoft. WindowsTerminal_8wekyb3d8bbwe\LocalState\settings. json. Terminal (preview release): %LOCALAPPDATA%\Packages\Microsoft.

How do you make a terminal transparent in Windows?

How to enable acrylic background on Windows Terminal Open Windows Terminal. Click the menu (down-arrow) button next to a tab. Click the Settings option. Under the “defaults” section, copy and paste the following command to enable transparency in all command line apps: “useAcrylic”: true, “acrylicOpacity”: 0.5.

How do I start zsh by default?

Once installed, you can set zsh as the default shell using: chsh -s $(which zsh) . After issuing this command, you’ll need to log out, then log back in again for the changes to take effect. If at any point you decide you don’t like zsh, you can revert to Bash using: chsh -s $(which bash) .

What is the default login shell?

Your default login shell is /bin/bash now. You must log out and log back in to see this change.

Why would you want to change your default shell quizlet?

Why would you want to change your default shell? To get the different functionality of another shell.

Will there be a Windows 11?

Microsoft has officially announced Windows 11, the next major software update, which will be coming to all compatible PCs later this year. Microsoft has officially announced Windows 11, the next major software update that will be coming to all compatible PCs later this year.

How do I change the default terminal in VS code?

9 Answers. You can also select your default terminal by pressing F1 in VS Code and typing/selecting Terminal: Select Default Profile (or Terminal: Select Default Shell in older VSCode versions).

What is calling shell app in Windows 10?

The application that you specify replaces the default shell (explorer.exe) that usually runs when a user logs on. This type of single-app kiosk does not run above the lock screen. In Shell Launcher v1, available in Windows 10, you can only specify a Windows desktop application as the replacement shell.

How do I change the default window size?

To add the Resize button to the title bar of each window, open the configuration window of Actual Window Manager, and follow to the Window Settings -> Default Settings ->Title Buttons tab. Then find the Resize button and check the box. Set the size for default resizing (pixels or percent) and save settings.

How can we set path in command prompt?

Windows In Search, search for and then select: System (Control Panel) Click the Advanced system settings link. Click Environment Variables. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Reopen Command prompt window, and run your java code.

How do I change to a different drive in command prompt?

How to change the drive in Command Prompt (CMD) To access another drive, type the drive’s letter, followed by “:”. For instance, if you wanted to change the drive from “C:” to “D:”, you should type “d:” and then press Enter on your keyboard.

It is possible to change a user’s login shell to a different then explorer.exe in the user’s registry (HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell). For example we can setup it to explore.exe -k serverfault.com and the user can view in kiosk mode only this site.

However, this configuration is done in the user’s profile and there is only on the computer where it is made (roaming profiles unfortunately can not be used in my case).

In the Linux world, while creating user has the ability to set login shell.

I’m looking for an opportunity to realize such in Window sdomain: set a domain user login shell in an active directory to the setting earned on all Windows computers in the domain.

Accepted any ideas. Roaming profiles are not available unfortunately.

UPD. I thought about setting a registry key of the user through the GPP, but:

  1. I’m not sure how it works when user first log
  2. After the MS16-072 update, there are some problems with the Group policy security filtering only to specific users.

  • Change password for windows user account
  • Chaqqon barmoqchalar skachat windows 10
  • Chaos legion вылетает windows 10
  • Change mbr to gpt windows
  • Change password command line windows