This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> | |
<Field | |
ID="{2e2aceb0-3c6a-4f9f-ae4e-c6db4dd35d3f}" | |
Name="SPJ_TeamName" | |
DisplayName="Team Name" | |
Type="Text" | |
Required="FALSE" | |
Group="SPJ Site Columns"> | |
</Field> |
This file contains 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
param($Site,$FilePath) | |
Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinue | |
function New-SPSiteMap ($SavePath, $Url) | |
{ | |
try | |
{ | |
$site=Get-SPSite $Url | |
$items = $site.Allwebs | ForEach { $_.Lists } | ForEach-Object -Process {$_.Items} |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
<url> | |
<loc>http://www.sharepoint-journey.com/</loc> | |
<lastmod>2014-07-05</lastmod> | |
<changefreq>daily</changefreq> | |
<priority>0.5</priority> | |
</url> |
This file contains 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
$w = Get-SPWeb "http://site" | |
$f = $w.Fields["date_reported"] #internal name of the column | |
$f.Title = "date reported" #new display name of date_reported column | |
$f.Update() |
This file contains 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
#Credentials to connect to office 365 tenenat admin url | |
$url ="https://velegandla-admin.sharepoint.com" | |
$username="[email protected]" | |
$password="yourpassword" | |
$Password = $password |ConvertTo-SecureString -AsPlainText -force | |
Write-Host "Load CSOM libraries" -foregroundcolor black -backgroundcolor yellow | |
Set-Location $PSScriptRoot | |
Add-Type -Path (Resolve-Path "Microsoft.SharePoint.Client.dll") |
This file contains 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
<sites> | |
<site Name="Training" Url="https://velegandla.sharepoint.com/sites/training/" > | |
<solutions> | |
<WSP Name="SPJ.Portal.wsp"/> | |
</solutions> | |
</site> | |
</sites> | |
This file contains 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
<?xml version="1.0" encoding="utf-8" ?> | |
<Group Name="India" Id="CC6E1ADE-444B-4642-8AB7-BBC6DB51FEDE"> | |
<TermSet Name="States" Id="EC83F362-625D-48B7-B4DD-5A9C484FB7E7"> | |
<Term Name="AP" /> | |
<Term Name="UP" /> | |
<Term Name="MP" /> | |
</TermSet> | |
<TermSet Name="Rivers" Id="DE1B5F85-2F6E-4773-BD7D-E09139BAEE5A"> | |
<Term Name="Ganga" /> | |
<Term Name="Yamuna" /> |
This file contains 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
#Credentials to connect to office 365 tenenat admin url | |
$url ="https://velegandla-admin.sharepoint.com" | |
$username="[email protected]" | |
$password="yourpassword" | |
$Password = $password |ConvertTo-SecureString -AsPlainText -force | |
Write-Host "Load CSOM libraries" -foregroundcolor black -backgroundcolor yellow | |
Set-Location $PSScriptRoot | |
Add-Type -Path (Resolve-Path "Microsoft.SharePoint.Client.dll") |
This file contains 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
#Credentials to connect to office 365 site collection url | |
$url ="https://velegandla.sharepoint.com/sites/training" | |
$username="[email protected]" | |
$password="yourpassword" | |
$Password = $password |ConvertTo-SecureString -AsPlainText -force | |
# site columns | |
$Name ="SPJName" | |
Write-Host "Load CSOM libraries" -foregroundcolor black -backgroundcolor yellow |
This file contains 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
#Credentials to connect to office 365 site collection url | |
$url ="https://velegandla.sharepoint.com/sites/training" | |
$username="[email protected]" | |
$password="yourpassword" | |
$Password = $password |ConvertTo-SecureString -AsPlainText -force | |
# site column and content tye id | |
$Name ="SPJName" | |
$contentTypeId ="0x0100AEF836037845AD47AD8F87A8C5736D4E" |