PowerShell/Docs/upload-file.ps1.md
2021-08-29 12:53:35 +02:00

78 lines
1.8 KiB
Markdown

# PowerShell Script /home/mf/PowerShell/Scripts/upload-file.ps1
## Synopsis
upload-file.ps1 [<file>] [<URL>] [<username>] [<password>]
## Description
Uploads the local file to the given FTP server
## Syntax
```powershell
/home/mf/PowerShell/Scripts/upload-file.ps1 [[-File] <String>] [[-URL] <String>] [[-Username] <String>] [[-Password] <String>] [<CommonParameters>]
```
## -File &lt;String&gt; Parameter
```
-File <String>
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
```
## -URL &lt;String&gt; Parameter
```
-URL <String>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
```
## -Username &lt;String&gt; Parameter
```
-Username <String>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
```
## -Password &lt;String&gt; Parameter
```
-Password <String>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
```
## <CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
## Example
```powershell
PS>.\upload-file.ps1
```
## Notes
Author: Markus Fleschutz
License: CC0
## Related Links
https://github.com/fleschutz/PowerShell
*Created by convert-ps2md.ps1*