-
Notifications
You must be signed in to change notification settings - Fork 30
New WinSCPItemPermission
Represents *nix-style remote file permissions.
New-WinSCPItemPermission [-Confirm] [-GroupExecute] [-GroupRead] [-GroupWrite] [-Numeric <Int32>]
[-Octal <String>] [-OtherExecute] [-OtherRead] [-OtherWrite] [-SetGid] [-SetUid] [-Sticky] [-Text <String>]
[-UserExecute] [-UserRead] [-UserWrite] [-WhatIf] [<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
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Execute permission for group.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Read permission for group.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Write permission for group.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Permissions as a number.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: 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: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Execute permission for others.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Read permission for others.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Write permission for others.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Grants the user, who executes the file, permissions of file group.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Grants the user, who executes the file, permissions of file owner.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Sticky bit.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Permissions as a text in format "rwxrwxrwx".
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Execute permission for owner.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Read permission for owner.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Write permission for owner.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: 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.