Rename SharePoint Web Application Name

$WA = SPWebApplication | where {$_.Name -match “OldName”}
$WA.Name =”NewName”
$WA.Update()
Get-SPWebApplication | where {$_.Name -match “NewName”}

Advertisements

Embed Smooth video in SP

<iframe width=”640″ height=”390″ src=”http://mediasite.com” frameborder=”0″ allowfullscreen></iframe>”

Add listener to AlwaysOn Cluster

ALTER AVAILABILITY GROUP sp2013
ADD LISTENER ‘lisname’ ( WITH IP ( (‘192.168.0.1′,’255.255.255.0’) ) , PORT = 1433 );
GO

Exchange online: convert mailbox to shared

To convert a user mailbox to shared mailbox
get-mailbox -identity user@domain.com | set-mailbox -type “Shared”

SharePoint Powershell command

Get-SPDatabase | select Name | out-file “list.txt”      —   give you the list of all the Content Database names in your SharePoint Farm into a file

Powershell – list of nested group membership of AD user

function GetGroups ($object) { Get-ADPrincipalGroupMembership $object | ForEach ` { $_ Get-ADPrincipalGroupMembership $_ } }

GetGroups username | select name -Unique

DirSync force synchronization

1. start PowerShell, type Import-Module DirSync
2. Start-OnlineCoexistenceSync

AAD Sync

1. cd  C:\Program Files\Microsoft Azure AD Sync\Bin
2. Run:  .\DirectorySyncClientCmd.exe delta