Exchange Server | Murat Bilici

"Empower your knowledge"

Archive for the 'Powershell' Category

Mailboxes not showing up in Disconnected Mailboxes

Ever experienced a disconnected mailbox, that doesn’t show up in Disconnected Mailbox, after the mailbox has be disabled or removed ? If you disable a mailbox within the Exchange Management Console or EMS and you for some reason want to reconnect it again, soon after. But are unable to find the disconnected mailbox within Disconnected [...]

31 Ağustos 2012 at 09:06 - Comments

Mailbox size reports Exchange powershell 2010 – Exchange 2010 powershell ile mailbox raporu almak

Exchange 2010 powershell ile mailbox raporu almak için aşagıda bulunan cmdlet’i kullanabilirsiniz , ihtiyacınıza göre ilgili parametreleri yazıp csv export edebilirsiniz. Raporun görünecek hali aşagıdaki gibi olacaktır. [PS] Get-Mailbox -Database "DB1" | sort-object | Select-Object name,alias,CustomAttribute7,servername,UseDatabaseRetentionDefaults,ProhibitSendQuota,IssueWarningQuota,MaxReceiveSize,MaxSendSize,DisplayName,Database,PrimarySmtpAddress,ProhibitSendReceiveQuota,@{n="Size(KB)";e = {$MBXstat = Get-MailboxStatistics $_.name; $MBXstat.totalItemsize}},@{n="Items"; e = {$MBXstat = Get-MailboxStatistics $_.name ; $MBXstat.itemcount; $MBXstat.storageLimitStatus}} | Export-Csv C:\output.csv  

10 Ağustos 2012 at 13:51 - Comments

Get-ProcessUpTime

Get-ProcessUpTime için aşagıdaki scripti kullanabilirsiniz. function Get-ProcessUpTime { param ($processName=”*”) $WhereFilter = {$_.ProcessName -like $processName} ForEach ($process in (Get-Process | Where $WhereFilter)) { try { $UpTime = ((Get-Date).Subtract($process.StartTime)).TotalMinutes } catch { $UpTime = “Cannot Determine UpTime” } finally { New-Object PSObject -Property @{ ProcessName = $process.ProcessName UpTime = $UpTime } } } }   Get-ProcessUpTime [...]

18 Haziran 2012 at 17:21 - Comments

Set the Forms-Based Authentication Public Computer Cookie Time-Out Value

This topic explains how to configure the cookie time-out values for public computers by using forms-based authentication on an Outlook Web App virtual directory on a Microsoft Exchange Server 2010 Client Access server Note : The Outlook Web App virtual directory must be configured to use forms-based authentication You need to be assigned permissions before you [...]

13 Nisan 2012 at 15:58 - Comments

Logparser ile Exchange 2010 Owa ve ActiveSync Kullanım Trendleri

Merhaba , Exchange 2010 ve 2007 sürümlerinde Owa , ActiveSync , OAB , RpcOverHttp gibi hizmetlerin kullanım trendlerini bulmak isterseniz aşagıdaki adımları takip edebilirsiniz , umarım işinize yarayan bir yazı olur. Öncelikle Logparser programına ihtiyacınız olacaktır, aşagıdaki linkden indirebilirsiniz. http://www.microsoft.com/downloads/details.aspx?FamilyID=890cd06b-abf8-4c25-91b2-f8d975cf8c07&displaylang=en ActiveSync için aşagıdaki komutu kullanabilirsiniz ====================================================== C:\Program Files (x86)\Log Parser 2.2>logparser “SELECT cs-username AS UserID, [...]

13 Nisan 2012 at 11:18 - Comments

Mail Gruplarına Gönderim Yetkisi Verme ve Raporlama

Merhaba , Mail Grupları (Distribution List) mail gönderen kişileri dilerseniz organizasyon içinde kendiniz belirleyebilirsiniz ; bunu yapmak için aşagıdaki cmdlet’i kullanabilirsiniz: [PS] C:\Set-DistributionGroup -IgnoreDefaultScope -BypassSecurityGroupManagerCheck -AcceptMessagesOnlyFromSendersOrMembers ‘muratbilici.com/USERS/Murat Bilici’ -Identity ‘muratbilici.com/Users/ Distribution Groups/MailGrubu’ Mail grubunda mail gönderme yetkisini listemek için aşagıdaki cmdlet’i kullanabilirsiniz: [PS] C:\Get-DistributionGroup "Mail Grubu" | fl name,accept* Organizasyonuzdaki tüm mail gruplarında yetki olup [...]

20 Mart 2012 at 16:00 - Comments

Check out Microsoft Script Explorer for Windows PowerShell (pre-release)

Wanted to write a quick post about a tool that can help you find and catalogue various PowerShell scripts that are scattered on various online communities or – possibly – your internal company network shares. The tool is called Microsoft Script Explorer for Windows PowerShell and has entered the public Beta 1 stage now. Download [...]

16 Mart 2012 at 11:24 - Comments

Exchange powershell script to find all users mailbox sizes

Exchange Server’da tüm kullanıcıların mailbox kullanımlarını görüntüleyip txt’ye export etmek için aşagıdaki powershell komutunu kullanabilirsiniz. Get-MailboxStatistics -Server ‘servername’ | where {$_.ObjectClass -eq “Mailbox”} | Sort-Object TotalItemSize -Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}}  -auto >> “d:\Temp\mailbox_size.txt”

15 Mart 2012 at 13:50 - Comments

Open Exchange Console or PowerShell error “The WinRM client received an HTTP status code of 502 from remote WS-Management service”

Exchange Management Console yada Exchange Management Shell açmaya çalıştığınızda aşağıdaki hatayı alıyor iseniz çözümü aşağıda bulabilirsiniz. Connecting to remote server failed with the error message: The WinRM client received an HTTP status code of 502 from remote WS-Management service. For more information, see the about_Remote_Troubleshooting Help topic. It was running the command ‘Discover-ExchangeServer -UseWIA $true [...]

11 Mart 2012 at 15:11 - Comments

Determine the Number of Active Users on Exchange 2010 Client Access Servers with PowerShell

Looking for a quick way to see how many users are currently connected to each of your Client Access Servers? This might be useful if you want to get a rough idea on load distribution, or when you’re getting ready to drain stop a server in a CAS array prior to maintenance. It’s always good [...]

8 Mart 2012 at 17:44 - Comments