OneDrive for Business - Upload document using PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-727783%22%20slang%3D%22en-US%22%3EOneDrive%20for%20Business%20-%20Upload%20document%20using%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-727783%22%20slang%3D%22en-US%22%3E%3CP%3EI%26nbsp%3Bam%20trying%20to%20upload%20a%20file%20(actually%20copy%20a%20file%20from%20a%20local%20machine)%20to%20folder%20in%20OneDrive%20for%20Business%3C%2FP%3E%3CP%3EUnfortunately%20I%20have%20not%20been%20able%20to%20find%20any%20PowerShell%20examples%20that%20can%20upload%20a%20file%20to%20OneDrive.%3C%2FP%3E%3CP%3EIs%20it%20even%20possible%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-727783%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-727951%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20for%20Business%20-%20Upload%20document%20using%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-727951%22%20slang%3D%22en-US%22%3EYes%2C%20it%20is%20absolutely%20possible...ODFB%20is%20built%20on%20top%20of%20SPO%20so%20same%20way%20to%20upload%20documents%20in%20a%20SPO%20document%20library%20can%20be%20used%20here%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-727955%22%20slang%3D%22en-US%22%3ERe%3A%20OneDrive%20for%20Business%20-%20Upload%20document%20using%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-727955%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F60%22%20target%3D%22_blank%22%3E%40Juan%20Carlos%20Gonz%C3%A1lez%20Mart%C3%ADn%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can't%20understand%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20explain%20more%20%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBest.%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F60%22%20target%3D%22_blank%22%3E%40Juan%20Carlos%20Gonz%C3%A1lez%20Mart%C3%ADn%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3EYes%2C%20it%20is%20absolutely%20possible...ODFB%20is%20built%20on%20top%20of%20SPO%20so%20same%20way%20to%20upload%20documents%20in%20a%20SPO%20document%20library%20can%20be%20used%20here%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I am trying to upload a file (actually copy a file from a local machine) to folder in OneDrive for Business

Unfortunately I have not been able to find any PowerShell examples that can upload a file to OneDrive.

Is it even possible?

 

 

2 Replies
Yes, it is absolutely possible...ODFB is built on top of SPO so same way to upload documents in a SPO document library can be used here

@Juan Carlos González Martín 

 

I can't understand 

 

Can you explain more ?

Best.


@Juan Carlos González Martín wrote:
Yes, it is absolutely possible...ODFB is built on top of SPO so same way to upload documents in a SPO document library can be used here