Exchange Server 2007 Cmdlet Examples
If you're new to Windows PowerShell and Exchange Server 2007, take a look at this link: www.microsoft.com/technet/scriptcenter/scripts/message/exch2007/default.mspx?mfr=true. The link goes to the Exchange Server 2007 Script Repository which contains a few dozen cmdlet and script examples for common administrative tasks. It's a really useful resource if you're just getting started.
Take a look and if you have any suggestions for examples we should add, be sure to send me a note via the Email page or post a comment.
Comments
Anonymous
January 01, 2003
Outlook 2007: Sync error 0x80190194 (OAB synchronization) Single Instance Storage Exchange when movingAnonymous
January 01, 2003
hi Kevin. The following should work for you. Since you're only interested in the one server, you don't need to retrieve the collection of servers (populating the $ExchangeServers variable). You just need to specify the server in the $Server variable you've already done. $server = "NHCLUEXCH01" $db = Get-MailboxDatabase -server $server foreach ($objItem in $db) { $edbfilepath = $objItem.edbfilepath $path = "``" + $server + "`" + $objItem.EdbFilePath.DriveName.Remove(1).ToString() + "$"+ $objItem.EdbFilePath.PathName.Remove(0,2) $dbsize = Get-ChildItem $path $ReturnedObj = New-Object PSObject $ReturnedObj | Add-Member NoteProperty -Name "ServerStorageGroupDatabase" -Value $objItem.Identity $ReturnedObj | Add-Member NoteProperty -Name "Size (MB)" -Value ("{0:n2}" -f ($dbsize.Length/1024KB)) Write-Output $ReturnedObj }Anonymous
February 11, 2009
The comment has been removed