Monday, December 31, 2012

Show exchange user mailbox size from Powershell

Get-MailboxStatistics -Server YOURSERVERNAME | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label=”TotalItemSize(KB)”;expression={$_.TotalItemSize.Value.ToKB()}},ItemCount You need to change SERVERNAME to your server, you can change KB to MB for totalitemsize.value to show in MB.

Monday, December 10, 2012

Disable Windows 7 Firewall by command line

Domain Profile: Netsh advfirewall set domainprofile state off Private Profile: Netsh advfirewall set privateprofile state off Public Profile: Netsh advfirewall set publicprofile state off Or to disable all: Netsh advfirewall set all state off Show profile status: Netsh advfirewall show allprofiles