[String]$listName="Custom List" [String]$description="Custom List created using SharePoint web service in windows powershell" [int]$templateId=100 $uri="http://serverName:10736/sites/ECT/_vti_bin/Lists.asmx?wsdl" $listWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential $listWebServiceReference.AddList($listName,$description,$templateId) write-host -ForegroundColor Green $listName " is created successfully"
|