-
Notifications
You must be signed in to change notification settings - Fork 30
New WinSCPItemPermission
Represents *nix-style remote file permissions.
New-WinSCPItemPermission [[-Numeric] <Int32>] [[-Octal] <String>] [[-Text] <String>] [-GroupExecute] [-GroupRead] [-GroupWrite] [-OtherExecute] [-OtherRead] [-OtherWrite] [-SetGid] [-SetUid] [-Sticky] [-UserExecute] [-UserRead] [-UserWrite] [<CommonParameters>]
Represents *nix-style remote file permissions.
PS C:\> New-WinSCPItemPermission
Numeric : 0
Text : ---------
Octal : 000
OtherExecute : False
OtherWrite : False
OtherRead : False
GroupExecute : False
GroupWrite : False
GroupRead : False
UserExecute : False
UserWrite : False
UserRead : False
Sticky : False
SetGid : False
SetUid : False
PS C:\> New-WinSCPItemPermission -OtherExecute -GroupExecute
Numeric : 9
Text : -----x--x
Octal : 011
OtherExecute : True
OtherWrite : False
OtherRead : False
GroupExecute : True
GroupWrite : False
GroupRead : False
UserExecute : False
UserWrite : False
UserRead : False
Sticky : False
SetGid : False
SetUid : False
Execute permission for group.
Type: SwitchParameter
Parameter Sets: Set 1
Aliases:
Required: false
Position: named
Default Value:
Pipeline Input: false
Read permission for group.
Type: SwitchParameter
Parameter Sets: Set 1
Aliases:
Required: false
Position: named
Default Value:
Pipeline Input: false
Write permission for group.
Type: SwitchParameter
Parameter Sets: Set 1
Aliases:
Required: false
Position: named
Default Value:
Pipeline Input: false
Permissions as a number.
Type: Int32
Parameter Sets: Set 1
Aliases:
Required: false
Position: 0
Default Value:
Pipeline Input: false
Permissions in octal format, e.g. "644". Octal format has 3 or 4 (when any special permissions are set) digits.
Type: String
Parameter Sets: Set 1
Aliases:
Required: false
Position: 1
Default Value:
Pipeline Input: false
Execute permission for others.
Type: SwitchParameter
Parameter Sets: Set 1
Aliases:
Required: false
Position: named
Default Value:
Pipeline Input: false
Read permission for others.
Type: SwitchParameter
Parameter Sets: Set 1
Aliases:
Required: false
Position: named
Default Value:
Pipeline Input: false
Write permission for others.
Type: SwitchParameter
Parameter Sets: Set 1
Aliases:
Required: false
Position: named
Default Value:
Pipeline Input: false
Grants the user, who executes the file, permissions of file group.
Type: SwitchParameter
Parameter Sets: Set 1
Aliases:
Required: false
Position: named
Default Value:
Pipeline Input: false
Grants the user, who executes the file, permissions of file owner.
Type: SwitchParameter
Parameter Sets: Set 1
Aliases:
Required: false
Position: named
Default Value:
Pipeline Input: false
Sticky bit.
Type: SwitchParameter
Parameter Sets: Set 1
Aliases:
Required: false
Position: named
Default Value:
Pipeline Input: false
Permissions as a text in format "rwxrwxrwx".
Type: String
Parameter Sets: Set 1
Aliases:
Required: false
Position: 2
Default Value:
Pipeline Input: false
Execute permission for owner.
Type: SwitchParameter
Parameter Sets: Set 1
Aliases:
Required: false
Position: named
Default Value:
Pipeline Input: false
Read permission for owner.
Type: SwitchParameter
Parameter Sets: Set 1
Aliases:
Required: false
Position: named
Default Value:
Pipeline Input: false
Write permission for owner.
Type: SwitchParameter
Parameter Sets: Set 1
Aliases:
Required: false
Position: named
Default Value:
Pipeline Input: false
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Generated by: PowerShell HelpWriter 2017 v2.1.36