Delete Lync Contact Entries in Exchange Online Using PowerShell

Posted on

PowerShell code to remove LYNC Contacts entries in Exchange Online. Code #Target MailboxID’s $MailboxNames = “TargetMailBoxID1” , “TargetMailBoxID1” #Any Exchange Admin ID with appropriate permissions $AdminID = “AdminID” #Fetch password as secure string $AdminPwd = Read-Host “Enter Password” -AsSecureString #Load the Exchange Web Service DLL $dllpath = “C:\Microsoft.Exchange.WebServices.dll” [Reflection.Assembly]::LoadFile($dllpath) #Create a Exchange Web Service $Service […]


Avoid Accidental Deletion of SharePoint List

Posted on

One of my client requested a settings in SharePoint 2010 to avoid accidental deletion of Lists. Indeed we can recover it from Recycle Bin within 30 days, but they need to avoid deletion. Alternatively we can make a permission settings to avoid deletion. Let’s see how to do this using PowerShell. Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue […]