Edit

Share via


Remove-OfficeWebAppsMachine

Removes the current server from the Office Online Server farm.

Syntax

Default (Default)

Remove-OfficeWebAppsMachine
    [-WhatIf]
    [-Confirm]

Description

The Remove-OfficeWebAppsMachine cmdlet removes the current server from the Office Online Server farm. As part of this process, the cmdlet removes the web applications and shuts down the services that are related to Office Online Server. If you cannot run the Remove-OfficeWebAppsMachine cmdlet from the server that you want to remove, use the Repair-OfficeWebAppsFarm cmdlet from any other server in the Office Online farm.

If the local server is designated as the master server in the Office Online Server farm, you cannot remove it from the farm until you assign a different server as master by using the Set-OfficeWebAppsMachine cmdlet, or until you remove all other servers from the farm.

Examples

EXAMPLE 1

Remove-OfficeWebAppsMachine

This example removes the current server from the Office Online Server farm.

Parameters

-Confirm

Prompts you for confirmation before executing the command.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Displays a message that describes the effect of the command instead of executing the command.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False