Monthly Archives: January 2008

“Realtime” answers… use and join #Windows

I know you might think IRC is a bit “out”… But… On server you can find fantastic channels like:

#Windows – Windows related questions and discussions
#Windows-Server – Windows server realated stuff…
#Powershell – Powershell stuff…

If you want realy quick answers or maybe some advices to folow… Get an IRC client for example mIRC, get connected to server and join those channels…


Mailbox statistics using Powershell in Exchange 2007

1. Sorted by Displayname (Display name, Mailbox size (MB), Item count, Last logon time, Last logoff time, Last loggedon user account)

Get-MailboxStatistics -Database “mailbox database” | Sort -Property DisplayName | ft DisplayName,@{expression={$_.totalitemsize.value.ToMB()};label=”Mailbox Size(MB)”}, itemcount, lastlogontime,lastlogofftime,lastloggedonuseraccount

2. Sorted by Last logon time
Get-MailboxStatistics -Database “mailbox database” | Sort -Property lastlogontime | ft DisplayName,@{expression={$_.totalitemsize.value.ToMB()};label=”Mailbox Size(MB)”}, itemcount, lastlogontime, lastlogofftime

Create mail-enabled public folder using Powershell in Exchange 2007

New-PublicFolder -Name “” -Path TEST

Enable-MailPublicFolder -Identity “”

Set-MailPublicFolder -Identity “” -EmailAddressPolicyEnabled $false

Set-MailPublicFolder -Identity “” -EmailAddresses “”, “”, “”

Set-MailPublicFolder -Identity “” -PrimarySmtpAddress test@test.comAdd-PublicFolderClientPermission -Identity “” -User Username -AccessRights EditorGet-PublicFolderClientPermission -Identity “” | fl

New certificate in Exchange 2007 step-by-step

1. step
New-ExchangeCertificate -generaterequest:1 -domainname,,, -privatekeyexportable:1 -path c:cert.txt -force:1

2. step
Import certificate request using web access to your Certification authority Рlogon as administrator! (WEB SERVER!!!)

3. step
Export certificate to a location on the disk… c:certnew.crt

4. step
Import-ExchangeCertificate -path c:certnew.cer

5. step
Enable-ExchangeCertificate -thumbprint 5ACC9A5D90E2CFDBAD6E25CD02362B8954506810 -Services “IIS,POP,SMTP,IMAP”

To remove old certificates:
Remove-ExchangeCertificate -Thumbprint …………