I appreciate any help you can give me. I have been task with stripping out all list + attachments to those list from SharePoint 2007. I was told that powershell was the best if not only way to do this. I do not know anything about sharepoint and I’m a novice with powershell. question 1. Do I run the powershell script on the application server where sharepoint is installed or on the sql server where the database is stored? 2. Is there scripts all ready setup to do this? 3. I searched and found serveral scripts that indicate how to do it but I’m getting the following error.
PS H:> [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”)
PS H:> $site = New-Object Microsoft.SharePoint.SPSite(“http://sharepointit.???.org/TS/assetmgmt/SLAR/Forms/AllItems.aspx”)
New-Object : Cannot find type [Microsoft.SharePoint.SPSite]: verify that the assembly containing this type is loaded.
At line:1 char:9
$site = New-Object Microsoft.SharePoint.SPSite("http://sharepointit.???.org/TS …
CategoryInfo : InvalidType: ( [New-Object], PSArgumentException
FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand