![]() ![]() #Download all folders that match the pattern # Add TOPdesk credentials for the connection, proving TOPdesk may send us the file. New-PSDrive Create a webclient that we will use to download the file. # Map remote folder to a temporary drive called TOPdesk $Credential = Get-Credential -Message 'Enter credentials for a TOPdesk operator with WebDAV file transfer permissions.' # Ask credentials for an operator with webdav access You don't have to edit anything below this line # Example: ^I16 matches all folders that start with I16. $folderPattern = "^I" #Uses regular expressions to match a list of folders. #What is the pattern we can use to identify folders to download? $UploadFolder = 'upload/incident' #Use a forward slash to indicate subfolders. # Modified for downloading multiple files from a WebDAV folder in a TOPdesk environment. Eventually I got the PowerShell file transfer via WebDAV to work using the following code: # Script to download files using a WebDAV file transfer connection. I had a similar problem and found this issue when searching for more information. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |