Remove-WssMsoUser

Removes an online service account.

Syntax

Remove-WssMsoUser
      [-WssUserName] <String>
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-WssMsoUser cmdlet removes an online service account from aad_1. Specify the name of the local network user account that the account is assigned to.

Examples

Example 1: Remove an online service account

PS C:\> Remove-WssMsoUser -WssUserName "EvanNarvaez"

This command removes the online service account that is assigned to the local network account named EvanNarvaez.

1:

PS C:\>

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WssUserName

Specifies the name of a user account. The cmdlet removes the online service account that is assigned to the account that you specify.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

WssUserName Type: System.String Description: local network account name of user