Shell.SetPassword
-----------------

Sets the password for login.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Shell](component_Shell.md) | [7.5](newinversion75.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "Shell.SetPassword"; ShellRef; Password ) 

**MBS**( **"Shell.SetPassword";** /\* Sets the password for login. \*/  
**$ShellRef**; /\* The reference number from the shell.e.g. $shell \*/   
**$Password**) /\* The password text.e.g. "xxx" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ShellRef | The reference number from the shell. | $shell |
| Password | The password text. | "xxx" |

### Result

Returns OK or error.

### Description

Sets the password for login.  
Only for Windows.  
### See also

- [Shell.GetPassword](ShellGetPassword.md)

This function checks for a license.

Created 11st November 2017 , last changed 3th October 2025

  
[Shell.SetMergeErrorAndOutput](ShellSetMergeErrorAndOutput.md) - [Shell.SetTag](ShellSetTag.md)

[HTML Version](ShellSetPassword.shtml)