Forum Discussion
Joe Fischer
Jul 17, 2018Brass Contributor
copy an mhtml document from a local share to a SharePoint Online document library on a schedule
Hi All, I have a reporting services report that places an mhtml file on a local share. I would like to display this on the home page of one of my sites using a web part. Is there a way for me to ...
Joe Fischer
Jul 17, 2018Brass Contributor
Thanks Steve,
This looks too easy :)
Is there a way to automate that?
It looks like it will prompt for a password.
Thanks Again,
joe
spucelik
Microsoft
Jul 17, 2018Joe...use this variable to "hard" code the password to avoid the prompt:
$Password = ConvertTo-SecureString –String "<PASSWORD>" –AsPlainText -Force
You can also use the task scheduler to run the script. here are the actions you should use when configuring the task.
Program/Script: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Add Arguments: -psconsolefile "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\CONFIG\POWERSHELL\Registration\psconsole.psc1" -command "[FullPathToScript]"
- Joe FischerJul 17, 2018Brass Contributor
Thanks Again,
I will le you know how it goes..
Joe
- Joe FischerJul 18, 2018Brass Contributor
Thanks again Steve,
works like a charm :)
Joe