Set-WssFolder

Set-WssFolder

Changes the settings of a server folder.

構文

Parameter Set: ByNameParamSet
Set-WssFolder [-Folder] <Folder> [-Description <String> ] [-Force] [-GroupName <String> ] [-HideFolderFromRemoteAccess <Boolean> ] [-NewName <String> ] [-Permission <Permission> {None | ReadOnly | Full | Other | ReadPermissions} ] [-Quota <UInt64> ] [-UserName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: BySidParamSet
Set-WssFolder [-Folder] <Folder> [-Description <String> ] [-Force] [-GroupSid <String> ] [-HideFolderFromRemoteAccess <Boolean> ] [-NewName <String> ] [-Permission <Permission> {None | ReadOnly | Full | Other | ReadPermissions} ] [-Quota <UInt64> ] [-UserSid <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Set-WssFolder cmdlet changes the settings of a server folder.

パラメーター

-Description<String>

Specifies a description for the server folder.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-Folder<Folder>

Specifies the name of a folder.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

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

True (ByValue)

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

false

-Force

ユーザーの確認を求めずにコマンドを強制的に実行します。

エイリアス

なし

必須?

false

位置は?

named

既定値

false

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

false

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

false

-GroupName<String>

Specifies the name of a group.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-GroupSid<String>

Specifies a security ID of a group.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-HideFolderFromRemoteAccess<Boolean>

Specifies whether to hide the folder in Remote Desktop Web Access or Web service applications.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-NewName<String>

Specifies a new name for the folder.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-Permission<Permission>

Specifies the access to the shared folder that the server grants to the user that you specify in the UserName parameter. このパラメーターに対して使用できる値:
-- None
-- Readonly
-- Full

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-Quota<UInt64>

Specifies a quota, in bytes, for the folder.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-UserName<String>

Specifies the user name of an account. The server grants the user the permission to the shared folder that you specify the Permission parameter.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-UserSid<String>

Specifies the security identifier (SID) of the user that you specify in the UserName parameter.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

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

false

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

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

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

false

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

false

<CommonParameters>

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

入力

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

  • Microsoft.WindowsServerSolutions.Storage.Folder

出力

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

  • Microsoft.WindowsServerSolutions.Storage.Folder

    This cmdlet generates an object that represents the modified folder.

Example 1: Change the settings of a server folder

The first command gets the folder named ProjectsWest and stores it in the $Folder variable.

The second command changes the name of the folder stored in the $Folder variable to ProjectsSoutwest01, and grants the user named SarahJones full access to ProjectsSoutwest01.

PS C:\> $Folder = Get-WssFolder -Name "ProjectsWest"PS C:\> Set-WssFolder -Folder $Folder -NewName "ProjectsSoutwest01" -UserName "SarahJones" -Permission Full

関連トピック

Add-WssFolder

Get-WssFolder

Move-WssFolder

Remove-WssFolder

Measure-WssFolder