Tag Info

Hot answers tagged

2

You can implement like the following: $web = Get-SPWeb http://sharepoint.contoso.com/sites/sitecollection $web.AnonymousState = [Microsoft.SharePoint.SPWeb+WebAnonymousState]::Enabled $web.Update()


2

You can do it all from C# using the excellent post found here: http://blah.winsmarts.com/2014-4-Get_list_of_site_collections_using_CSOM_in_Office365.aspx This example is, I believe, from within a SharePoint app but you can do it similarly from a console app. First you'll need to add a reference to Microsoft.Online.SharePoint.Client.Tenant.dll which you ...


1

Their are couple of reasons for the issue. Make sure the imgages are still in the Imgaes folder on 14 hive( all server in farm) Make sure Docicon.xml is correct( sometime its become corrupt or somebody make changes in it which cause broken image).location of file is C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES.


1

try the below code and see if it works $claim = New-SPClaimsPrincipal -TrustedIdentityTokenIssuerr $ap -Identity UserName $site = New-SPSite $url -OwnerAlias $claim.ToEncodedString() -template "STS#0" I think you need to encode the string to get it works. http://technet.microsoft.com/en-us/library/ff607753(v=office.14).aspx#section1 Also check this one: ...


1

Rather than send your uses to the useless OSSSearch Page, why not just configure the Site Collection to send them to your search center. This way you will get results from all sites? Alternatively you can teach them what to expect when searching a list (just list content) a site (just site content) and "everything" all site collections.


1

You would have to resort to calling the PowerShell, and using the Get-SPOSite cmdlet to get all the site collections. The following will return the url of all site collections: var runspace = RunspaceFactory.CreateRunspace(); runspace.Open(); var pipeline = runspace.CreatePipeline(); pipeline.Commands.AddScript( "Import-Module ...


1

Up until April 2014 Cumulative Update for the SharePoint 2013 release only Office 365 and SP Online supported the provisioning of site collections remotely using CSOM extensions (part of the Windows PowerShell for SharePoint Online package). This set of functionalities was not available for on-premises (or Office365-Dedicated). With April 2014 Cumulative ...


1

Use the following code to retrieve the file contents as string in your feature activation code: SPWeb web=(SPWeb)properties.Feature.Parent; string fileUrl="/_catalogs/masterpage/PageFromDocLayout.aspx"; string pageFromDocLayoutContent=web.GetFileAsString(fileUrl); Then do some modification to the file contents as you wish. According to your ...



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