wdsutil remove-namespace

Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Removes a custom namespace.

Syntax

wdsutil /remove-Namespace /Namespace:<Namespace name> [/Server:<Server name>] [/force]

Parameters

Parameter Description
/Namespace:<Namespace name> Specifies the name of the namespace. This is not the friendly name, and it must be unique.

- Deployment Server role service: The syntax for namespace name is /Namespace:WDS:<ImageGroup>/<ImageName>/<Index>. For example: WDS:ImageGroup1/install.wim/1
- Transport Server role service: This value must match the name given to the namespace when it was created on the server.

[/Server:<Server name>] Specifies the name of the server. This can be the NetBIOS name or the fully qualified domain name (FQDN). If no server name is specified, the local server is used.
[/force] removes the namespace immediately and terminates all clients. Note that unless you specify /force, existing clients can complete the transfer, but new clients are not able to join.

Examples

To stop a namespace (current clients can complete the transfer but new clients are not able to join), type:

wdsutil /remove-Namespace /Namespace:Custom Auto 1

To force termination of all clients, type:

wdsutil /remove-Namespace /Server:MyWDSServer /Namespace:Custom Auto 1 /force