Posts

Change the "SharePoint" text in the top left corner (SuiteBar)

$webapp = Get-SPWebApplication "Your Site URL" $webapp.SuiteBarBrandingElementHtml ="Your New Text" $webapp.Update()

Insert 1 Millon Items in SP List using PowerShell

// Site URL $siteurl = "Your Site URL" // Assign Value $mysite=new-object Microsoft.SharePoint.SPSite($siteurl) $spWeb = $mysite.OpenWeb() $spList = $ spWeb.Lists [“TestList”] // Insert 1 million items $i = 1001 do { Write-Host “Item – “$i          $spitem = $ spList.Items.Add ()          $spitem[“Title”] = $i.tostring()          $spitem.Update()          $i++ } while ($i -le 1000000)

Unable to STOP microsoft sharepoint foundation web application service

Run the below command in PowerShell stsadm - o provisionservice - action start - servicetype spwebservice it will restart the service. More info https://technet.microsoft.com/en-us/library/ee748612.aspx  Hope this will helps you...

"Sorry, this site hasn't been shared with you." - SharePoint 2013

OK, How to solve this error?  Login to the site collection with either site collection administrator or Farm Admin (granted with "Full control" Web Application user policy!), grant appropriate access to the user in question by going to Site Settings >> People and Groups. Once you do this, users prompted for credentials instead of the Sorry, this site hasn't been shared with you error. Still getting same "Sorry, this site hasn't been shared with you."? Might be because of cached credentials from a prior browser session. Try clearing IE cache: Open a new browser window >> Go to Internet options >> In the general tab, click the Delete button >> Make sure that passwords and temporary Internet files are selected. Try different browser such as Firefox! If you didn't run product and configuration wizard after installation/patch, you may get this error even if you are a site collection administrator. Run it once and get rid of this is...

What’s new - “Sharing” in SharePoint 2016

Image
Sharing - In addition to files, Now users can Share Folder as well in the SP 2016. The Sharing can be done by using Sharing button. Also there will be option to invite people in the Folder creating window. Some screen shots are provided below. Just look at those and you will come to know this amazing feature provided by Microsoft. Click Invite People if you get any error as below To enable sharing disable the limited access lockdown mode feature on the site features page Then deactivate the feature. To know  the folder shared with whom, then go to modify view and add the "Shared With" column into list view. List default view Original Source :  http://www.learningsharepoint.com/2015/10/27/whats-new-with-sharing-in-sharepoint-2016/ 

Create and Configure SQL Server Alias for SharePoint Installation

https://codecreature.wordpress.com/2014/08/11/create-and-configure-sql-server-instance-and-alias-for-sharepoint-installation/ 

Export all documents/Folders permissions to CSV using SharePoint PowerShell

$ver = $host | select version if($Ver.version.major -gt 1) {$Host.Runspace.ThreadOptions = "ReuseThread"} if(!(Get-PSSnapin Microsoft.SharePoint.PowerShell -ea 0)) { Write-Progress -Activity "Loading Modules" -Status "Loading Microsoft.SharePoint.PowerShell" Add-PSSnapin Microsoft.SharePoint.PowerShell } #Get the Site collection $Site= Get-SPSite http://SiteURL $outputPath = "c:\Permission.csv" Function GetMyFiles($Folder) {     Write-Host "+in : "$Folder.Name     foreach($file in $Folder.Files)     {         Write-Host "'t" $file.Name         Add-Content -Path $outputPath -Value  "                     File Name : $($file.Name)"         # $file.Item.RoleAssignments -fore yellow         Add-Content -Path $outputPath -Value "                       ...