1
Reply

Error while running Powershell script

Aravind Kumar

Aravind Kumar

Aug 9 2016 10:11 AM
315
New-Object : Cannot find type [Microsoft.SharePoint.Client.ClientContext]: make sure the assembly containing this type is loaded.
+ $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($siteURL)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand

Answers (1)