Remove-WssMsoUserAssignment

Remove-WssMsoUserAssignment

Removes the assignment between an online service account and an account.

構文

Parameter Set: Default
Remove-WssMsoUserAssignment [-WssUserName] <String> [ <CommonParameters>]

詳細説明

The Remove-WssMsoUserAssignment cmdlet removes the online service account (the Microsoft account) from its assignment to a local network user account. This cmdlet does not otherwise modify or delete either account.

パラメーター

-WssUserName<String>

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

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByValue, ByPropertyName)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • System.String

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

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • Note: If you run this command against a local network user account that does not have a Microsoft account it generates an error.

Example 1: Remove an assignment

This command removes the assignment between the user account named PattiFuller and an online service account.

PS C:\> Remove-WssMsoUserAssignment -WssUserName "PattiFuller"
PS C:\> 

関連トピック

Set-WssMsoUserAssignment

Get-WssMsoAssignedUser

Remove-WssMsoGroupAssignment