kwizcom banner advertisement

Export and Import Subsite in SharePoint 2013 using PowerShell

5:30 PM    , , , , , ,
Export-Import subsite using PowerShell in SharePoint 2010 how to export SharePoint subsite? export subsite SharePoint 2013 PowerShell, Unlike SharePoint 2013, you'll have to create a subsite first and then import. Export-SPWeb cmdlet used to export a sub site, list or document library. Open SharePoint 2013 Management Shell and run this command. Change Site URL and Path values accordingly. Export-SPWeb "http://sharepoint.company.com/sites/Sales/US/" ` -Path "C:\sales-us.cmp" -IncludeVersions All -includeusersecurity To export a site, list or document library by using Central Administration: You can also export a Subsite from SharePoint 2010/2013/2016 Central Administration via "Export a site or list"  capability. Go to SharePoint Central Administration >> Backup and Restore >> Click on "Export a site or list" link under "Granular Backup" group. Important: Both the source and destination sites should
Export and Import Subsite in SharePoint 2013 using PowerShell Export and Import Subsite in SharePoint 2013 using PowerShell Reviewed by Salaudeen Rajack on 5:30 PM Rating: 5

Get SharePoint Timer Job History using PowerShell

11:10 AM    , , , , , ,
Requirement: Retrieve and review the SharePoint timer job history for troubleshooting an issue. Solution: SharePoint 2013 Central Administration site provides an interface to get timer job history. Here are the steps to get SharePoint timer job history in SharePoint. Navigate to SharePoint 2013 Central Administration site Go to Monitoring >> Check Job status Click on "Job History" link from left navigation Under the "View" filter, choose "Job Definition". You'll find an cascading filter appears as "Job Definition" once you choose View filter as "Job definition". You can also choose options such as: Service, Web Application, Server. Click on the job definition filter to "change job definition" Pick the relevant timer job definition. E.g. Audit Log Trimming, Immediate Alerts, etc. Now, you'll find the jobs history for selected timer job as below. PowerShell script to search and export timer job histo
Get SharePoint Timer Job History using PowerShell Get SharePoint Timer Job History using PowerShell Reviewed by Salaudeen Rajack on 11:10 AM Rating: 5

Open with Explorer: Network Error - Windows cannot access URL@SSL\DavWWWRoot\SiteURL

3:54 PM    ,
Problem:  Open with Explorer button in SharePoint 2010 site gave this error message on a particular document library. Network Error - Windows cannot access URL@SSL\DavWWWRoot\SiteURL\Library You do not have permission to access \\web-app-url@com@SSL\DavWWWRoot\Library-URL. Contact your network administrator to request access. Observation:  Issue is happening only with a particular library. Explorer view works fine with all other document libraries in the same environment. Issue is not specific to a particular client machine or user. Open with explorer from the Root level of the library and got the above error. Tried going into each sub-folders and clicking on "Open with Explorer" worked fine, Except for one folder where SharePoint prompted for credentials three times and gave "Your client does not support opening this list with Windows Explorer." - So that's the culprit. Solution: Tried running Windows update, Various hot fixes from Microsoft KB&#
Open with Explorer: Network Error - Windows cannot access URL@SSL\DavWWWRoot\SiteURL Open with Explorer: Network Error - Windows cannot access URL@SSL\DavWWWRoot\SiteURL Reviewed by Salaudeen Rajack on 3:54 PM Rating: 5

Open SharePoint List Items in Edit Mode by Default

5:31 PM    , , , ,
Requirement: Open SharePoint Task list items in Edit form directly instead of "Display form". Solution: Go to your SharePoint task list, Click on Site settings gear, Choose "Edit page"   Add a script editor and place this code: jQuery to launch list items in Edit mode: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { //Change display form links to edit form links $('.ms-vb a[href*="listform.aspx"]').each(function(){ var url = $(this).attr('href'); url = url.replace("PageType=4", "PageType=6"); $(this).attr('href', url); }); }); </script> Save and close! Now, on clicking any task item link, you'll be taken into Edit form directly.
Open SharePoint List Items in Edit Mode by Default Open SharePoint List Items in Edit Mode by Default Reviewed by Salaudeen Rajack on 5:31 PM Rating: 5

SPD Error: Microsoft SharePoint designer does not support editing non-SharePoint sites

2:49 PM    ,
Error: "Microsoft SharePoint designer does not support editing non-SharePoint sites" - while trying to open a SharePoint 2016 site with SharePoint designer 2013, got this error message. Solutions: Simply close all instances of your SharePoint Designer and then reopen it. Check if client integration is enabled https://support.microsoft.com/en-us/kb/981223 Clear SharePoint designer cache. Here is How to Clear SharePoint Designer Cache Try re-installing SharePoint designer!
SPD Error: Microsoft SharePoint designer does not support editing non-SharePoint sites SPD Error: Microsoft SharePoint designer does not support editing non-SharePoint sites Reviewed by Salaudeen Rajack on 2:49 PM Rating: 5

SharePoint Online: Get List Items using CSOM PowerShell Script

7:32 PM    , ,
SharePoint online: PowerShell to get all list items #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" #Variables for Processing $SiteUrl = "https://crescent.sharepoint.com/" $ListName="Projects" $UserName="admin@crescent.com" $Password ="Password goes here" #Setup Credentials to connect $Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($UserName,(ConvertTo-SecureString $Password -AsPlainText -Force)) #Set up the context $Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteUrl) $Context.Credentials = $credentials #Get the List $List = $Context.web.Lists.GetByTitle($ListName) $ListItems = $List.GetItems([Microsoft.SharePoint.Cli
SharePoint Online: Get List Items using CSOM PowerShell Script SharePoint Online: Get List Items using CSOM PowerShell Script Reviewed by Salaudeen Rajack on 7:32 PM Rating: 5

Access Denied Error After Migrating from SharePoint 2010 to SharePoint 2013

1:58 PM    , , , , , ,
Problem: After migrating from SharePoint 2010 to SharePoint 2013 using database attach method, all users received "access denied" error and they were unable to login. Made sure, both the source and destination SharePoint farms are in same Active Directory domain. Root cause: This is because, by default SharePoint 2013 web applications are created with Claims authentication. So existing classic mode accounts (domain\UserName) are not recognized by claims mode (i:0#.w|domain\username) web application. Tips: You can verify if your SharePoint 2013 is using claims mode by using:   (Get-SPWebApplication "<Web App URL").UseClaimsAuthentication Solution:  After some trial and error, found granting permission again to the users resolves the problem. However, its impossible to provide access to all users to wherever they have had permissions again manually, isn't it? Well, the right solution is: Convert the authentication method from classic-mode to claim
Access Denied Error After Migrating from SharePoint 2010 to SharePoint 2013 Access Denied Error After Migrating from SharePoint 2010 to SharePoint 2013 Reviewed by Salaudeen Rajack on 1:58 PM Rating: 5

How to Create a Service Application Pool in SharePoint using PowerShell?

8:01 PM    , , , , , ,
Service Application pools runs service application proxy web services inside IIS. Typically all of the service applications can be run with the same application pool. You can create a new service application pool while creating new service applications in SharePoint 2013. Ever wanted to create an new service application pool in SharePoint using PowerShell? Well, Here is my PowerShell script to create new AppPool. Prerequisites: We need a managed account (or login credentials of a service account) to create a service App Pool. PowerShell Script to Create New Service Application Pool in SharePoint 2013: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue #Configuration Parameters $AppPoolAccount = "Crescent\SP16-SearchAppPool" $AppPoolName = "Search Service Application App Pool" #Check if Managed account is registered already Write-Host -ForegroundColor Yellow "Checking if Application Pool Accounts already exists" $AppPoolAc
How to Create a Service Application Pool in SharePoint using PowerShell? How to Create a Service Application Pool in SharePoint using PowerShell? Reviewed by Salaudeen Rajack on 8:01 PM Rating: 5

Server Error in '/x' Application - Excel Web App Error - Solution

4:36 PM    ,
Problem: All of a sudden Office Web Apps Excel Web App stopped working and gave this Runtime error message on opening Microsoft Excel files from SharePoint 2013: Server Error in '/x' Application. Solution:  This occurs due to the public key which connects to the WOPI application such as Office Web Apps Server to the SharePoint farm goes out of sync! To resolve the issue, Run from any SharePoint Server:   Update-SPWOPIProofKey
Server Error in '/x' Application - Excel Web App Error - Solution Server Error in '/x' Application - Excel Web App Error - Solution Reviewed by Salaudeen Rajack on 4:36 PM Rating: 5

Access Denied Error on Insert Picture/Link/Upload File in SharePoint 2010

1:42 PM    , , ,
Problem: Users getting "Access Denied" error message while trying insert a picture via SharePoint 2010 Rich text editor. Verified that the user has "Full Access" permissions on the specific list, Still gets access denied on accessing layout pages such as: /_layouts/RteUploadDialog.aspx, /_layouts/RteDialog.aspx. Found it happens to other ribbon actions as well: Insert Link or Upload file. Solution: Found that the particular list is with broken permissions! Although not a perfect solution, Granting "Read" access at site level fixed this problem!
Access Denied Error on Insert Picture/Link/Upload File in SharePoint 2010 Access Denied Error on Insert Picture/Link/Upload File in SharePoint 2010 Reviewed by Salaudeen Rajack on 1:42 PM Rating: 5

SharePoint Online: Import CSV File into SharePoint List using PowerShell-CSOM

5:05 PM    , , , , ,
Scenario: My requirement is to import data from CSV file to SharePoint online list from a local drive, every day! PowerShell Script to import SharePoint List Items from CSV File: #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" ##Variables for Processing $SiteUrl = "https://crescent.sharepoint.com/sites/POC/" $ListName="Contacts" $ImportFile ="c:\Scripts\EmpData.csv" $UserName="Salaudeen@crescent.com" $Password ="Password goes here" #Setup Credentials to connect $Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($UserName,(ConvertTo-SecureString $Password -AsPlainText -Force)) #Set up the context $Context = New-Object Microsoft.SharePo
SharePoint Online: Import CSV File into SharePoint List using PowerShell-CSOM SharePoint Online: Import CSV File into SharePoint List using PowerShell-CSOM Reviewed by Salaudeen Rajack on 5:05 PM Rating: 5

Top 50 Use Cases of SharePoint in the Industry

2:05 PM    
Most of the people knows Microsoft SharePoint as a File Share, But apart from File Share, there are number ways SharePoint is being used by organizations. Here is the list of top 50 use cases in my experience: Document Management System File Shares Content Management System Enterprise Search Center (Search site to index and search all sites, including non-SharePoint sites of the company) Enterprise Social Networking Site - Yammer! Corporate News Portal-Intranet-Extranet-Internet web Sites Project Management tool (with or without project server integration) Team Collaboration work space Employee Self-Service portal - Employee requests center Business process Automation/Workflows – BPM E.g. Expense Reimbursement, Travel Request Event Management - Party! Knowledge Base - KB sites Issue/bug Tracker system Reporting Tool - SSRS! Task Management Calendar Sharing - Corporate Calendars with important events and schedules Help desk management - Ticketing system Incident/Chang
Top 50 Use Cases of SharePoint in the Industry Top 50 Use Cases of SharePoint in the Industry Reviewed by Salaudeen Rajack on 2:05 PM Rating: 5

How to Add a Link to SharePoint 2013 Suite Bar?

5:44 PM    , ,
Requirement : Add a link to SharePoint 2013 suite bar. Solution: Edit SharePoint 2013 Master page to add a new link in Suite Bar Adding link to suite bar in SharePoint 2013 can be achieved by following these simple steps: Open your SharePoint 2013 site in SharePoint designer 2013. Navigate to "Master Pages" folder Right click on your master page (by default: Seattle.master) and choose "Edit file in Advanced Mode" Locate the text: id="DeltaSuiteLinks" and add the below code just below the DeltaSuiteLinks tag to add link to suite bar of SharePoint 2013 <span id="CustomerSupport" class="ms-core-suiteLink"> <a class="ms-core-suiteLink-a" href="http://support.crescent.com"> <asp:Label ID="lblCS" runat="server" Text="Customer Support"></asp:Label> </a> </span> Save and close SharePoint designer. This adds link to SharePoint 2013 s
How to Add a Link to SharePoint 2013 Suite Bar? How to Add a Link to SharePoint 2013 Suite Bar? Reviewed by Salaudeen Rajack on 5:44 PM Rating: 5

Cannot show the value of the filter. The field may not be filterable, or the number of items returned exceeds the list view threshold enforced by the administrator

2:07 PM    ,
Problem: When trying to filter a list with large items, got this error message: "Cannot show the value of the filter. The field may not be filterable, or the number of items returned exceeds the list view threshold enforced by the administrator" Root cause: Identified that the particular list has more than 25,000 rows in it. Filter fails as it exceeds the default threshold value configured. Solution: As the error message says: Your SharePoint Administrator got to update the Resource throttling threshold values from SharePoint 2010/2013 Central Administration site.Here are the steps to increase 'List View Threshold' value: Open SharePoint 2010 Central Administration site Go to Application Management' >> Manage Web Applications Choose the web application in which you want to make the changes Now from the ribbon, Click on 'General Settings >> Resource Throttling In the resource throttling page, increase the "List View Threshold"
Cannot show the value of the filter. The field may not be filterable, or the number of items returned exceeds the list view threshold enforced by the administrator Cannot show the value of the filter. The field may not be filterable, or the number of items returned exceeds the list view threshold enforced by the administrator Reviewed by Salaudeen Rajack on 2:07 PM Rating: 5

Disable Redirect from User Information Page (userdisp.aspx) to MySite Profile Page (Person.aspx)

12:47 PM    , ,
If you want to quickly check SharePoint user profile properties, You can get it from user information list or by simply clicking on user name hyperlinks from metadata fields such as: Created by. Usually, user profile page points to: http://sharepointsite.com/_layouts/userdisp.aspx?ID=123 When clicked on user name hyperlink, will get redirected to My Site profile page (E.g. http://mysite/person.aspx?accountname) if the user has a my site profile created. If the user has My site profile created, then the UserDisp.aspx page redirects to his/her My site profile page automatically. Is there any way to get the basic version of userdisp.aspx, instead of redirecting them to the MySite profile of that person when someone clicks on such links? Well, Here is a nifty trick to stop redirecting to user's Mysite profile page and get the simple User Information. Add:Force=True parameter to the above URL. So, it will be: http://portal.ad2012.loc/_layouts/userdisp.aspx? Force=True &ID
Disable Redirect from User Information Page (userdisp.aspx) to MySite Profile Page (Person.aspx) Disable Redirect from User Information Page (userdisp.aspx) to MySite Profile Page (Person.aspx) Reviewed by Salaudeen Rajack on 12:47 PM Rating: 5

Fix "The site is not valid. The 'Pages' document library is missing" Error

4:24 PM    ,
Problem: After trying to deactivate and activate the publishing feature in a site, users started receiving this error: "The site is not valid. The 'Pages' document library is missing". It also happened after importing a subsite backup! Additionally, when tried creating a Publishing Pages they got this error: The site is not valid. The 'Pages' document library is missing. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: Microsoft.SharePoint.Publishing.InvalidPublishingWebException: The site is not valid. The 'Pages' document library is missing. Root Cause:  SharePoint Publishing feature stores the ID of the "Pages" library in the "__PagesListId" property  of SPWeb property bag. If this property doesn't match with the current "Pages" library, then w
Fix "The site is not valid. The 'Pages' document library is missing" Error Fix "The site is not valid. The 'Pages' document library is missing" Error Reviewed by Salaudeen Rajack on 4:24 PM Rating: 5

Get and Export User Profile Properties using PowerShell in SharePoint 2013

12:33 PM    , , , , ,
Its a common requirement in SharePoint to prepare reports from user profile properties. Here is my PowerShell scripts to get user profile properties in SharePoint. Important: Make sure User Profile Service Application is created , up and running before running these scripts! and run as Farm Administrator!! Get user profile Properties in SharePoint 2013 using PowerShell Lets get user profile property value for given user. #Configuration Variables $SiteURL = "http://mysite.crescent.com" $UserLogin="Crescent\Salaudeen" #Get Objects $ServiceContext = Get-SPServiceContext -site $SiteURL $UserProfileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($ServiceContext) #Get the User Profile $UserProfile = $UserProfileManager.GetUserProfile($UserLogin) #Retrieve User Profile Properties Write-host $UserProfile["PreferredName"] Write-host $UserProfile["WorkEmail"] You are not limited to these fields, But there are ple
Get and Export User Profile Properties using PowerShell in SharePoint 2013 Get and Export User Profile Properties using PowerShell in SharePoint 2013 Reviewed by Salaudeen Rajack on 12:33 PM Rating: 5
Powered by Blogger.