Last active
May 12, 2021 14:24
-
-
Save TheBigBear/1d2369d3b353a452bb3b76a805b24d3d to your computer and use it in GitHub Desktop.
scripting ms o365 'file request' using powershell to use a 'any' anonymous link to upload a file to onedrive folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can anybody help me write a powershell function that takes three parameters | |
and uploads a specified file usnig the file request URL. | |
'firstname' 'lastname' and 'file'to stuff in the web file upload request. | |
MS 'file request' uploads are explained here: | |
https://support.microsoft.com/en-us/office/create-a-file-request-f54aa7f8-2589-4421-b351-d415fc3b83af | |
And one such 'test' file request is here: | |
https://theraus-my.sharepoint.com/:f:/g/personal/eset_reports_teams_theraus_org/Ej3n42J8-ldIrZTuqCz_Ce4BmWKSdOb07gtaX7IaPFLtyQ | |
Please upload any ps code you come up with as a file to make this an easily scripted task. | |
PS: One obvious requirement is that your MS o365 org (or specifically your tenant) do have the anonymous 'any' link sharing enabled. | |
https://docs.microsoft.com/en-gb/sharepoint/turn-external-sharing-on-or-off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK, now I have a first (almost) working version. It automates most of the steps. But I have not yet figured out how to tell the IE comobject what file to upload .