Quantcast
Channel: SharePoint – SharePointed
Browsing all 68 articles
Browse latest View live

Get all Groups and Users in a Site Collection or Web

Recently a user contacted me asking how to get all the groups and users in a site and subsites. Both example will output to the C:\ drive of the server. This script will output all the groups and user...

View Article


Image may be NSFW.
Clik here to view.

Server was unable to process request Access is denied. Connecting to SharePoint

Errors: Server was unable to process request. —> Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Object moved Object moved to In your project, navigate to the Web Reference...

View Article


Make Your PowerShell Script Environment Aware

In place of hard coding URLs for each environment, I decided to make a single script that is environment aware. Why? Cuts down on the number of scripts that have to be supported for a single...

View Article

Uploading Files to SharePoint 2016 Using ListData.svc

Ran into a small issue when testing some code for a SharePoint 2010 to SharePoint 2016 migration. With SharePoint 2010, the following code sample would work to upload files to a library. //ServRef is a...

View Article

Officialfile.asmx SharePoint 2013 and 2016

As part of a SharePoint 2010 to SharePoint 2016 migration I needed to test the Officialfile.asmx service. When testing the service I encountered this error: NotFound string sFilePath = @"c\taco.txt";...

View Article


SharePoint listdata.svc Returns Error – FIXED

With SharePoint 2016 and 2013: If you try to access listdata.svc you receive an error This page can’t be displayed or Sorry, something went wrong. SharePoint Designer you try to open Lists and...

View Article

Email address is incorrect for user in SharePoint

In the process of migrating from SharePoint 2010 to 2016 and ran into a small problem. When trying to get the email property from the SPUser class, it returned a value of domain\userName. Clearly, this...

View Article

Image may be NSFW.
Clik here to view.

Remove Upload Button and Drag files here to upload text

There might be a better way to get this done, but for now, this works for me. Keep in mind, this update works on a per view basis. If I find a way to correctly update the masterpage, I will update this...

View Article


Searching SharePoint Using PowerShell

In this example, I needed to search a farm for every site under a managed path. BUT, the sites I’m searching for were built using a 3rd part tool and would not correctly appear in the search results....

View Article


Create a console app to query userprofileservice.asmx

In Visual Studio, create a console application. Create a web reference using the following inputs: URL: https://yourSite.url/_vti_bin/userprofileservice.asmx?WSDL Name: UPS1 In the program.cs class,...

View Article

Use PowerShell to Execute SharePoint Search Queries

In this example, I’m narrowing my search to one library and a search term. At a high level, the script is searching the FoodSite for the word GoodTaco. cls function Query-SPSearch { param(...

View Article

SharePoint CSOM Upload File Access Denied Error

Simple process, using a .Net Web App, create a local file and upload it to SharePoint. I thought the service account I was using had ampel permissions to the Site, but for it didnt… For testing, I...

View Article

The Web application at X could not be found.

Error: The Web application at https://sharepoint.sharepointed.com could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system...

View Article


SharePoint SPFx PNP gulp trust-dev-cert Error

Trying to setup my dev environment to play around with SPFx and ran into this error: [08:33:19] Error - [trust-cert] Error: root "Trusted Root Certification Authorities" Signature matches Public Key...

View Article

Move OneNote Notebooks to New SharePoint Library or Server

Problem: My company recently completed a SharePoint 2010 to 2016 migration. With the migration came the use HTTPS security, so my OneNote notebooks stored in SharePoint would no longer sync. All of my...

View Article


Image may be NSFW.
Clik here to view.

Copy or Move Folder Structure in SharePoint Using CSOM

This post is intended for SharePoint Online and 2016+ using CSOM. In previous version of SharePoint, moving a folder structure to a different library or a different library in another site collection...

View Article

PowerShell and CSOM Bulk Delete List Items

From my desktop, I wanted to delete all the items in a list. The list had 10,000+ item and loop through the items one at a time is slow and not efficient. This is where batch process comes in and will...

View Article


Image may be NSFW.
Clik here to view.

Use Selenium to Upload a File to SharePoint

I created a Visual Studio console app. Added the Selenium WebDriver and the Selenium Chome WebDriver Nuget packages using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using...

View Article

Using SharePoint Keyword Query to Search Across Site Collections

Quick and easy way to search for an item across site collections. I would suggest using one of the Keyword query tools to fine tune your queries. Also note that SharePoint will limit your search...

View Article

Get 5 Most Recently Update Items From ALL Lists in a FARM

A wise man recently asked me how I’d go about retrieving the five most recent modified items from every list in a farm. Fun question and there are a couple ways of going about this, but here is what I...

View Article
Browsing all 68 articles
Browse latest View live