Add listener to AlwaysOn Cluster

ADD LISTENER ‘lisname’ ( WITH IP ( (‘′,’’) ) , PORT = 1433 );


Exchange online: convert mailbox to shared

To convert a user mailbox to shared mailbox
get-mailbox -identity | 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



Windows PowerShell Command

Add-WindowsFeature Desktop-Experience  – Add a new Windows Desktop Experience feature

SharePoint Powershell commands

Get-SPServiceInstance   – All services running on the farm
Stop-SPServiceInstance -Identity “service GUID”  – Stop service
Start-SPServiceInstance -Identity “service GUID”  – Start service