Few days ago my boss asked me to check one hard drive. I was able to get everything. However next time when we connected this hard drive windows asked us to format it (RAW ). This is how I fixed it. Go to Disk Management . Right click on problematic…
July 2015
This is one of my favorite Powershell scripts. Easy way to show how big are Exchange mailboxes and make your boss happy 🙂 This is the result: Copy and past 🙂 $Report=@() $mailbox=Get-mailbox –resultsize unlimited $mailbox| foreach-object{ $DisplayName=$_.DisplayName $SmtpAddress=$_.PrimarySmtpAddress $TotalItemSize=(get-mailboxstatistics –identity $DisplayName ).TotalITemSize $obj=new-object System.Object $obj|add-member -membertype NoteProperty -name “DisplayName”…
Simple like that: Get-Mailbox -resultsize unlimited | Where {$_.Emailaddresses -Match “@my_domain.com”} | Select Name, Emailaddresses If you sure that it is primary smtp address you can write like Get-Mailbox -resultsize unlimited | Where {$_.Emailaddresses -Match “@my_domain.com”} | select name, PrimarySmtpAddress