SharePoint 2010 Backup
First off you need to have a service account that is “sysadmin” on the SharePoint databases and is...
Exporting distribution list membership to Excel
Easy one-liner for exporting members of a distribution list: Get-DistributionGroupMember -identity "company-dl" | Export-Csv C:\MyFile.Csv you can also use “-not” that gives you...
Reset SA password from Command Promt with OSQL
If SQL server is installed without an instance: Start command promt as administrator and type the following: osql...
SharePoint 2010 – Missing Server Dependencies in all databases
After upgrading to SharePoint 2010 to the latest CU i got the “Missing Server Dependencies” error in the...
Exchange 2007/2010 – Hide users from global adress list (GAL)
Hide all users: 1, Connect PowerShell to Exchange. 2, Run the following command: Get-Mailbox Alias | Set-Mailbox -HiddenFromAddressListsEnabled...
How To Delete A Service
Works in (at least): Win7, 2008 Server, 2008 R2 Server. sc delete [Service Name] To find service name,...
VHD tool
VHD tool – A grate tool for creating, convert, extend and repair VHD files. It can be downloaded...
Resize disk in windows server 2003
To extend a disk in windows 2003 use diskpart. To use Diskpart.exe, follow these steps: Open a command...
List users and size of mailbox in Exchange 2007 and 2010 with Powershell
Get-Mailbox | Get-MailboxStatistics | select-object DisplayName, {$_.TotalItemSize.Value.ToMB()}