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
/* Long Version */ | |
$(".list li").sort(asc_sort).appendTo('.list'); | |
// ascending sort | |
function asc_sort(a, b){ | |
return ($(b).text().toUpperCase()) < ($(a).text().toUpperCase()) ? 1 : -1; | |
} | |
// descending sort | |
function desc_sort(a, b){ |
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
New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -Value "1" -PropertyType dword |
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
$site = Get-SPSite -Identity "http://YourSiteCollectionUrl" | |
try { | |
$site | Get-SPWeb -limit all | ForEach-Object { | |
$_.CustomMasterUrl = $site.RootWeb.CustomMasterUrl | |
$_.AllProperties["__InheritsCustomMasterUrl"] = "True" | |
$_.MasterUrl = $site.RootWeb.MasterUrl | |
$_.AllProperties["__InheritsMasterUrl"] = "True" | |
$_.AlternateCssUrl = $site.RootWeb.AlternateCssUrl | |
$_.AllProperties["__InheritsAlternateCssUrl"] = "True" |
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
cls | |
Write-Host "Loading SharePoint Commandlets" | |
Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue | |
Write-Host -ForegroundColor Green " Commandlets Loaded ..." | |
Write-Host | |
## Global Functions | |
function Get-ScriptDirectory { | |
$Invocation = (Get-Variable MyInvocation -Scope 1).Value | |
Split-Path $Invocation.MyCommand.Path |