mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-12 21:37:22 +00:00
55 lines
1.4 KiB
Markdown
55 lines
1.4 KiB
Markdown
---
|
|
title: WESL_UserSetting.RemoveCustomShell
|
|
description: WESL_UserSetting.RemoveCustomShell
|
|
MSHAttr:
|
|
- 'PreferredSiteName:MSDN'
|
|
- 'PreferredLib:/library/windows/hardware'
|
|
ms.assetid: 161eb289-e3b5-4d16-b367-f79f2b90f291
|
|
author: TerryWarwick
|
|
ms.author: twarwick
|
|
ms.service: windows-iot
|
|
ms.subservice: iot
|
|
ms.date: 05/20/2024
|
|
ms.topic: article
|
|
|
|
|
|
---
|
|
# WESL_UserSetting.RemoveCustomShell
|
|
|
|
This method removes a Shell Launcher configuration for a specific user or group, based on the security identifier (SID).
|
|
|
|
## Syntax
|
|
|
|
```powershell
|
|
[Static] uint32 RemoveCustomShell (
|
|
[In, Required] string Sid
|
|
);
|
|
```
|
|
|
|
## Parameters
|
|
|
|
**Sid**</br>\[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](/windows/win32/wmisdk/wmi-non-error-constants) or a [WMI error](/windows/win32/wmisdk/wmi-error-constants).
|
|
|
|
## Remarks
|
|
|
|
You must restart your device for the changes to take effect.
|
|
|
|
## Requirements
|
|
|
|
| Windows Edition | Supported |
|
|
|:-----------------------|:---------:|
|
|
| Windows Home | No |
|
|
| Windows Pro | No |
|
|
| Windows Enterprise | Yes |
|
|
| Windows Education | Yes |
|
|
| Windows IoT Enterprise | Yes |
|
|
|
|
## Related topics
|
|
|
|
- [WESL_UserSetting](wesl-usersetting.md)
|
|
- [Shell Launcher](index.md)
|