New answers tagged

0

The solution I found was to simply enter the commands in PowerShell line by line instead of using the script provided with the FBA Pack. I don't know why the script wasn't running, but I can install without using the script. Indeed you need to be in version 2.0, but with the last version of SharePoint Server 2010 which has to be used with slipstream when ...


0

Using powershell to configure the FBA is not easy job But Thanks to MSFt scripting guy, who wrote the extensive script to configure the FBA wither with LDAP or SQL. Script allows an IT admin to configure LDAP or SQL based FBA on SharePoint 2010/2013 web applications i.e. it makes all the changes in web.config files of Central Admin, STS and web ...


0

You can follow there steps. This steps are just brief introduction: Create the Custom SQL Authentication Database Configure the Membership Provider Configure a SharePoint Web Application for Form-Based Authentication Add Users from IIS The detail script is given here


0

<# .SYNOPSIS Add managed properties to the Search Service Application. .DESCRIPTION Add managed properties to the Search Service Application. .NOTES File Name: Create-ManagedProperty.ps1 Author : Bart Kuppens Version : 1.0 .PARAMETER ConfigFile Specifies the location and name of the config file which ...


0

I found a site detailing exactly what needed to be done http://thesharepointbar.com/?p=432 Basically access the appropriate term store, then access the groups that need to be deleted or have termsets deleted from them. Then you just call delete on them, and this short article I linked above will provide a foreach loop that deletes all of the termsets and ...


0

I guess that you have problem with SharePoint Server Publishing Infrastructure. The Save site as template command is not supported and can cause problems on sites that use the SharePoint Server Publishing Infrastructure. More information can be found here https://support.office.com/en-us/article/Create-and-use-site-templates-60371B0F-00E0-4C49-A844-...


0

So, I managed to find a solution for my question. Bellow is Powershell script code: Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinue #Variable for Web URL $WebURL ="#" #get Web object $Web = Get-SPWeb $WebURL #Get Lists with Unique permissions - Exclude Hidden lists $ListColl = $web.lists | Where-Object { ($_.hidden -eq $...


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 ...


0

For folders try the following: $folders = $list.Folders if ($folders.Count -gt 0) { foreach ($folder in $folders) { if ($folder.HasUniqueRoleAssignments -eq $True) { $folder.ResetRoleInheritance() $folder.update() } } } For list items, try the following: $list_items = $list.Items if ($...


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 ...


0

Activation dependencies are applicable only when you are activating the feature (as the name suggests). You could refer this article, which says the following about dependencies in the same solution, You can add other Features in your solution as dependencies. This way, you can make sure that required Features are installed and activated before your ...


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....


0

I had the same issue and followed the advice in this link. http://johnmhester.wordpress.com/2014/01/31/error-changing-a-site-title-in-sharepoint-2013/ basically it says to delete the site assets library and then press the title, logo and description link again. regards Daniel


0

Try the below code, function GetAllWebs($url) { try { $w = Get-SPWeb $url; Write-Host ([String]::Format("Procesing web {0}",$w.Url)) -foregroundcolor Blue if($w.Webs.Count -gt 0) { foreach($web in $w.Webs) { $web.Url GetAllWebs $web.Url; } } ...


0

This script will accomplish the goal, at least in SP2010/2013/2016. I don't have access to an SP2007 box but you should easily be able to replace my use of the Get-SPSite cmdlet with the new-object sytnax. $SPSite = Get-SPSite "http://YourHostName.net/sites/YourSiteCollection" # Set this to any positive integer; items more than this many days old will be ...


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 ...


0

I have found something that worked for me. It is kind of forcing it to sync again: Get-SPUser –Web http://sharepointsite | Set-SPUser –SyncFromAD You will probably get some error like Set-SPUser : Cannot get the full name or e-mail address of user "c:0(.s|true"., but nothing to worry about


3

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


0

Excel can't write back to SharePoint, but MS-Access can. Your requirement can be done with one SQL statement: UPDATE "Archive" SET PersonID= ... WHERE LegacyID= ...


0

Over-simplified Branch­Cache will use a por­tion (5% default) of a client com­put­ers hard drive to store requested files (or chunks of files). So, sec­ond requests for the same file will use this locally cached copy. That elim­i­nates the need to re-download this large file over the WAN. Don't know much about it but I found it on below article. ...


0

You need to write PowerShell in 2 parts. One will create site collection and the other will apply custom template. Start Part 1 Create a SharePoint Site Collection with a custom Template using Powershell Write-Host “Provide the site collection URL e.g. http://intranet/site/custom” $Siteurl = read-host Write-Host “Provide the site collection owner email ...


0

If the stand alone web application and SharePoint are not in the same domain, the simple answer is that you cannot update an item in SharePoint list unless you are using Apps. The more complex answer is that you would need to have a proxy of some sort to do this. You could write a simple layer 7 proxy inside the non-SharePoint web app that forwards the ...


0

For me it was enough to place RoleAssignments.Add() operation inside $context.Load(): # User or group name $name = "User1" # Principal $principalInfo = [Microsoft.SharePoint.Client.Utilities.Utility]::ResolvePrincipal($context, $context.Web, $name, [Microsoft.SharePoint.Client.Utilities.PrincipalType]::All, [Microsoft.SharePoint.Client.Utilities....


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....


0

You can use C# code in PowerShell scripts with Add-Type cmdlet: Add-Type -Language CSharp -ReferencedAssemblies @("$PSScriptRoot\Microsoft.SharePoint.Client.dll", "$PSScriptRoot\Microsoft.SharePoint.Client.Runtime.dll") -TypeDefinition ' using Microsoft.SharePoint.Client; public static class Helper { public static void LoadHasUniqueRoleAssignments(...


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

How to Check Site Lock Status using POWERSHELL? You can Navigate to: Central Administration > Application Management > Configure Quotas and Locks to get lock status. Get Lock status with STSADM stsadm -o getsitelock -URL http://sharepoint.crescent.com Retrieve Site lock status Using PowerShell: Get-SPSite "http://sharepoint.crescent.com" | Select ...


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 ...


0

the code below fixed the problem: $webApp = $db.WebApplication $user = $env:USERDOMAIN+"\"+$env:USERNAME $webApp.GrantAccessToProcessIdentity($user)


0

Do the forms contain any other references, such as lookup lists, or SharePoint data connections ? Within the contents of the form (InfoPath), these might need to be verified/checked - when the InfoPath client does the 'publish'.


0

I need to import a .csv file with following fields: GroupName,Managed_by,PrimarySmtpAddress,Members Managed_by and Members are columns (People and Group) and both have multiple users separated ";" Kindly advise


0

As per my understanding there is no direct way to get the size of a custom list. One option is to calculate each field size (Using SPField DisplaySize) and then multiplying that with total item count.


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 ...



Top 50 recent answers are included