Send To Records Center with PowerShell

Greetings,

I have a scenario where I need to send documents to a records center using PowerShell.  Can someone guide me to the best way of accomplishing this?

Thank you!

Bob

May 31st, 2015 10:07pm

Hi,

The following PowerShell script for your reference:

$siteurl = "https://siteurl";
$spweb = Get-SPWeb -Identity $siteurl
$list = $spweb.Lists["Document"]
$outputResult = ""
foreach($item in $list.Items)
{
  $item.File.SendToOfficialFile([ref] $outputResult)
  $outputResult
}

More information is here:

Send files to records center with PowerShell

https://sharepointkaos.wordpress.com/2015/05/05/send-files-to-records-center-with-powershell/

Best Regards,

Dennis

Free Windows Admin Tool Kit Click here and download it now
June 1st, 2015 10:00pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics