Skip to content

Monthly Archives: March 2008

Uploading files to SharePoint Revisited

09-Mar-08

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” […]