Good day, I need help.
I need to update a Sharepoint List using Powershell from my PC & not on the Sharepoint Server. Very new to Powershell - only installed yesterday on my PC.
I installed powershell got powershell to execute a simple script successfully. Now trying to update the Document Library Ran this on my PC: PS C:> .Powershell1.ps1
i get the following error: New-Object : Cannot find type [Microsoft.SharePoint.SPSite]: make sure the asse mbly containing this type is loaded. At C:Powershell1.ps1:7 char:21 + $spSite = new-object <<<< Microsoft.SharePoint.SPSite
The code of the file: [System.Reflection.Assembly]::LoadWithPartialName(
Update a Sharepoint List (document library)
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Update a Sharepoint List (document library)
If you can do something with VBScript you can easily do it in PowerShell, sometimes even easier. PowerShell can work with COM objects like VBScript and even with VBScript objects like wscript.network.