Disable-WssMsoSharePointPermissionInheritance
Disable-WssMsoSharePointPermissionInheritance
Disables permission inheritance for a securable object.
構文
Parameter Set: ByLibrary
Disable-WssMsoSharePointPermissionInheritance [-Library] <SharePointLibrary> [ <CommonParameters>]
Parameter Set: BySite
Disable-WssMsoSharePointPermissionInheritance [-Site] <SharePointSite> [ <CommonParameters>]
詳細説明
The Disable-WssMsoSharePointPermissionInheritance cmdlet disables permission inheritance for a securable object. Securable objects include sites, lists, libraries, folders, documents, or items.
パラメーター
-Library<SharePointLibrary>
Specifies a library. The cmdlet disables permission inheritance for a library that you specify.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue, ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Site<SharePointSite>
Specifies a site. The cmdlet disables permission inheritance for a site 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)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary,Microsoft.WindowsServerSolutions.O365Integration.SharePointSite
Library
Type: Microsoft.WindowsServerSolutions.O365Integration.SharePointLibrary
Description: SharePoint library
Site
Type: Microsoft.WindowsServerSolutions.O365Integration.SharePointSite
Description: SharePoint site
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Disable SharePoint permission inheritance
The first command uses the Get-WssMsoSharePointLibrary cmdlet to get a library, and stores the result in the $Library variable.
The second command disables permission inheritance for the library named $Library.
PS C:\> $Library = Get-WssMsoSharePointLibrary | Select-Object -First 1
PS C:\> Disable-WssMsoSharePointPermissionInheritance -SharePointLibrary $Library
PS C:\>