Exchange Server | Murat Bilici

"Empower your knowledge"

Archive for the 'Scripts' Category

Read Register Dword Vbs Scripts – VBScript Read From Registry

Read Register Dword Vbs Scripts Merhaba; Aşağıdaki script ile register dword değerini okuyabilir (Read From Registry) belirlenen path ile txt formatında ilgili değeri günün tarihi ile yazdırabilirsiniz. Aşağıdaki örnekte USB store değeri okutulmuştur.

25 Nisan 2012 at 18:55 - 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

SecuritygrupExportToTxt

Active Directory Security  grubunun txt export’u için aşagıdak script’i kullanabilirsiniz.   Option Explicit Dim strMember, strDNSDomain, strContainer Dim objGroup, objRootDSE Dim Stuff, myFSO, WriteStuff Dim arrMemberOf ‘  Bind to Active Directory’ strContainer = “CN=GroupName,OU=Users,” Set objRootDSE = GetObject(“LDAP://RootDSE”) strDNSDomain = objRootDSE.Get(“DefaultNamingContext”) ‘  Get the Builtin Administrators group Set objGroup = GetObject (“LDAP://”& strContainer & strDNSDomain) [...]

8 Mart 2012 at 11:34 - Comments

Monitor Databases in DAGs

Function sendEmail ([String] $body) { $MailMessage = New-Object System.Net.Mail.MailMessage $MailMessage.From = "exchange@letsexchange.com" $MailMessage.To.Add("nuno@letsexchange.com") $MailMessage.Subject = "DAG Not Healthy!" $MailMessage.Body = $body $MailMessage.Priority = "High"

24 Şubat 2012 at 13:49 - Comments