Forum Discussion
Uday Kiran Reddy
Dec 12, 2017Copper Contributor
How to uploads files to OneDrive for Business using Powershell
I tried the sample powershell code in below link, getting error as path not found.
https://community.spiceworks.com/topic/2001221-powershell-script-to-upload-file-to-onedrive-business
Sam...
Dec 12, 2017
Have you identified in which line are you having the error? The script is quite straightforward and it should work
Uday Kiran Reddy
Dec 12, 2017Copper Contributor
It is not working for sub folders.
$DocLibName = "Documents" it is working(only for files, not folders)
$DocLibName = "Attachments" or $DocLibName = "Documents/Attachments" it is not working.
Attachments is the name of subfolder we created.