Hot answers tagged

3

That would be the easiest way to do it, and the way I'd recommend you to do it.


2

You can refer this blog to understand how to apply CSR. The code which you can write to modify column names is as below (I am currently modifying "Title"): (function () { function preTaskFormRenderer(renderCtx) { modifyColumns(renderCtx); } function modifyColumns(renderCtx) { var arrayLength= renderCtx.ListSchema....


2

Try this #Variable for Web URL $WebURL ="Your URL " # Varibale to hold document count $count = 0 #get Web object $Web = Get-SPWeb $WebURL if ( ($web.HasUniqueRoleAssignments) -and ($web.IsRootWeb -eq $false ) ) { $web.ResetRoleInheritance() Write-host "Broken Inheritance Reset on web:" $web.URL } #Get Lists with Unique permissions - Exclude Hidden ...


1

I finally found the answer! adding these two lines to the top of my script worked. $w = Get-SPWebApplication -Identity https://mysharepoint.org $w.GrantAccessToProcessIdentity("domain\my_username") Full script: $s = New-PSSession -ComputerName mysharepoint.org Invoke-Command -Session $s { Add-PSSnapin "Microsoft.SharePoint.PowerShell" $w = Get-...


1

You need to call $termStore.CommitAll() after calling delete in order to actually delete the termset. Then again retrieve the termstore object to see the correct count of termsets as termstore uses a cache internally. The local termgroups are linked to the Site collection in a 2-way manner i.e. the termgroup has the SiteCollectionID set in its properties ...


1

URL field is mandatory in Links content type. If want to remove it from content type you won’t get the option to remove/delete. I suggest you to hide the URL field instead of removing because removing from content type will impact other links content type list. Here is the code to set hidden $web = Get-SPWeb -identity http://your/site/name $list = $web....


1

Is there some reason the OOB SharePoint versioning and content approval process is not sufficient? By using versioning and content approval, you can restrict access to "draft" documents to the group of reviewers until they approve the document and publish a major version. Once the document is published as a major version, it would be available for any ...


1

If you are doing it for the first time, you need to set another property called SharingDomainRestrictionMode to AllowList mode using below cmdlet: Set-SPOTenant -SharingDomainRestrictionMode AllowList -SharingAllowedDomainList "amit.com" Every time you update the SharingAllowedDomainList, it overwrites the existing values. So, you can use below cmdlet to ...


1

There is a known compatibility issue with SharePoint 2010 and Windows Management Framework 4.0 (WMF), which also includes PowerShell 3.0. If you install these components on a server that also runs SharePoint 2010, you may encounter errors when running SharePoint PowerShell cmdlets. Please check below article for resolution of your issue. WORKAROUND ...


1

FOR Get-SPSiteAdministrator The Get-SPSiteAdminitration cmdlet returns a site administration object that allows farm administrators to view certain information about site collections to which they might not have access. FOR Get-SPSite The Get-SPSite cmdlet returns either a single site that matches the Identity parameter, or all the sites that match the ...



Only top voted, non community-wiki answers of a minimum length are eligible