Help setting $transferOptions.FilePermissions in powershell
Powershell
I need to set the file permissions to Octal 666.
$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions.TransferMode = [WinSCP.TransferMode]::Binary
$transferOptions.FilePermissions = ?
I am new to powershell and am trying to work through this "Create new instance of FilePermissions and set FilePermissions.Octal to a value of the switch."
Any help/guidance would be appreciated
I need to set the file permissions to Octal 666.
$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions.TransferMode = [WinSCP.TransferMode]::Binary
$transferOptions.FilePermissions = ?
I am new to powershell and am trying to work through this "Create new instance of FilePermissions and set FilePermissions.Octal to a value of the switch."
Any help/guidance would be appreciated