WESL_UserSetting.RemoveCustomShell
This method removes a Shell Launcher configuration for a specific user or group, based on the security identifier (SID).
Windows edition requirements
The following list contains the Windows editions that support Shell Launcher:
✅ Enterprise / Enterprise LTSC
✅ Education
✅ IoT Enterprise / IoT Enterprise LTSC
Syntax
[Static] uint32 RemoveCustomShell (
[In, Required] string Sid
);
Parameters
Sid
[in, required] A string containing the security identifier (SID) of the user or group that Shell Launcher is configured for.
Return Value
Returns an HRESULT value that indicates WMI status or a WMI error.
Remarks
You must restart your device for the changes to take effect.