Shell.SetDomain
---------------

Sets the domain to use 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.SetDomain"; ShellRef; Domain ) 

**MBS**( **"Shell.SetDomain";** /\* Sets the domain to use for login. \*/  
**$ShellRef**; /\* The reference number from the shell.e.g. $shell \*/   
**$Domain**) /\* The domain to use. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ShellRef | The reference number from the shell. | $shell |
| Domain | The domain to use. |  |

### Result

Returns OK or error.

### Description

Sets the domain to use for login.  
Only for Windows.  
### See also

- [Shell.GetDomain](ShellGetDomain.md)

This function checks for a license.

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

  
[Shell.SetDataAvailableScript](ShellSetDataAvailableScript.md) - [Shell.SetMergeErrorAndOutput](ShellSetMergeErrorAndOutput.md)

[HTML Version](ShellSetDomain.shtml)