- first document version
Install-Module -Name Use-UptoBox
Import-Module Use-UptoBox
Import-Module c:\mypath\Use-UptoBox\Use-UptoBox.psd1
Set-UptoboxAPIKey -APIKey xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- note :
- the api Key is loaded the global variables
$uptoboxAPIKey
- the api Key is loaded the global variables
Set-UptoboxAPIKey -APIKey xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -MasterPassword (ConvertTo-SecureString -String "YourP@ssw0rd" -AsPlainText -Force) -EncryptKeyInLocalFile
- note :
- the generated file is $home/Use-Uptobox/Use-Uptobox-Config.xml
Import-uptoboxEncryptedIKey -MasterPassword (ConvertTo-SecureString -String "YourP@ssw0rd" -AsPlainText -Force)
Get-UptoboxUserInfo
- the following options work with both synchronous / asynchronous cmdlets
Get-UptoboxFileAsync -filecode yyyyyyyyyyyy
Get-UptoboxFile -filecode yyyyyyyyyyyy
Get-UptoboxFileAsync -url https://uptobox.com/yyyyyyyyyyyy
Get-UptoboxFile -url https://uptobox.com/yyyyyyyyyyyy
Get-UptoboxFileAsync -filecode yyyyyyyyyyyy -outputfolder "c:\myfolder"
Get-UptoboxFile -filecode yyyyyyyyyyyy -outputfolder "c:\myfolder"
Get-UptoboxFile -url https://uptobox.com/yyyyyyyyyyyy
Get-UptoboxFileAsync -url https://uptobox.com/yyyyyyyyyyyy
- this cmdlet require PowerShell host in version > 5.1
- this cmdlet use the module threadjob
- you can run the cmdlet
Get-UptoboxFileAsync
multiple times and a PowerShell job (thread) will be created for each file. you can follow the download status usingget-job
cmdlet. All jobs created have a name starting with UptoBox