This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Add SharePoint PowerShell Snapin which adds SharePoint specific cmdlets | |
Add-PSSnapin Microsoft.SharePoint.PowerShell -EA SilentlyContinue | |
# Script settings | |
$webUrl = "http://weburl" | |
$listName = "Large List" | |
$numberOfItemsToCreate = 6000 | |
$itemNamePrefix = "SWIFT " | |
# Open web and library |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################################################################# | |
# SharePoint Trusted Identity Token Issuer Realm Configuration for Web Applications # | |
# # | |
# Usage - This script is used to add/remove a realm and url to or from an existing Trusted Identity Token Issuer # | |
# # | |
# Parameters # | |
# $Realm - This is the realm name given by or agreed by the ping team for this connection. # | |
# SP team will decide what the realm should be # | |
# $Identity - This is the name given to the base trusted identity Token Issuer, which is shown # | |
# under claims providers in SP. # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Where> | |
<Or> | |
<Eq> | |
<FieldRef ID=’Assigned To’ /> | |
<Value Type=’Integer’><UserID/></Value> | |
</Eq> | |
<Membership Type=’CurrentUserGroups’> | |
<FieldRef Name=’AssignedTo’ /> | |
</Membership>”; | |
</Or> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Update Site Column | |
======================= | |
$site = Get-SPSite -Identity "site url" | |
$web = $site.RootWeb | |
$field = $web.Fields["Field Display Name"] #Display name of the field, Internal name didn't work for me. Don'tthe reason | |
$field.Title = "New Value" #new display name | |
$field.Update($true) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Web= Get-SPWeb "root web url" | |
$pageCT = $web.ContentTypes["CType name"] | |
$field = $pageCT.FieldLinks["Column"] | |
$field.Title = "New Display Name" | |
$pageCT.Update($true) |