Quite a long time ago I blogged about uploading files to SharePoint using PowerShell (see original article). That script used the get-content cmdlet and is very slow. The script below should work better as it uses a stream. Of course, the script is very basic and you will have to adapt it to your needs.
begin
{
$propbag=@{”ContentType=”Document”,”Product” […]
Category Archives: SharePoint
Uploading files to SharePoint Revisited
09-Mar-08When you are learning to work with the SharePoint object model, it can be handy to use PowerShell as a discovery tool to see what’s available and how it works. Several posts on this blog have already dealt with the SharePoint object model. This post should be seen as an introduction and an how to.
First […]
Uploading Documents To SharePoint
13-Mar-07Uploading documents to SharePoint is a common requirement in any SharePoint project. There are many tools at your disposal to accomplish that task but you can also leverage PowerShell in combination with the .NET FrameWork and the SharePoint object model. The script below is an example of how to upload files to SharePoint (save it […]
SharePoint, PowerShell and web services
27-Feb-07SharePoint comes with many web services that allow you to do many things from working with users to working with SharePoint sites and much more. In the past, if an administrator wanted to work with these web services from a scripting language, it was not that easy. Sure, you could create something with Visual Studio […]
SharePoint, PowerShell and XML
27-Feb-07In PowerShell, it is quite easy to work with XML, even if you are not very familiar with it. Because a lot of applications come with XML configuration files or output XML administrators should know how to work with XML from a scripting language. Since XML is just text, any scripting language can be used […]
