Aravind Kumar

Aravind Kumar

  • NA
  • 32
  • 18.7k

Error while running Powershell script

Aug 9 2016 10:11 AM
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)