I have a current script which upload different .rdl files to my sharepoint site and in to different folder. E.g below:
It looks like this:
$spWeb = Get-SPWeb "mysite" $spList = $spWeb.Lists["Reports"] $file = [io.file]::ReadAllBytes('D:\temp\test.rdl') $spList.RootFolder.SubFolders["Test"].Files.Add("test.rdl",$file)
Now I would like to add data as well. E.g Datasource, Type, Credentials etc.
Anyone who can help me out?