Wallpaper – Cactus
Click image for 1920 x 1080 version.
You may use this image for personal use only. Please contact me for business use.
Click image for 1920 x 1080 version.
You may use this image for personal use only. Please contact me for business use.
Click image for 1920 x 1080 version.
You may use this image for personal use only. Please contact me for business use.

I love exchange and have used it for several years each version adds functionality but sometimes they make things harder than they need to be.
You’ll have to use the Exchange Management Shell to accomplish these tasks.
This command will remove the mailbox and leave the user (disconnects it then you can get rid of the disconnected mailbox):
Disable-Mailbox -Identity domain\user
You’ll need to run the Clean-MailboxDatabase command to get Exchange to disconnect the mailbox so you can get rid of it.
Clean-MailboxDatabase
The Clean-MailboxDatabase prompts for Identity, this is the name of your mailbox database. In my case, and I think the default, it’s Mailbox Database.
At this point you can go to the disconnected mailbox area of the Exchange console, hit refresh and you can see the disconnected mailbox.
Now, to get rid of disconnected mailboxes.
Show all disconnected mailboxes:
Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid
Remove a single box:
Remove-Mailbox -Database <Database-Name> -StoreMailboxIdentity <MailboxGuid> -confirm:$false
Group them together and remove all:
$users = Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid
$users | ForEach { Remove-Mailbox -Database “Mailbox Database” -StoreMailboxIdentity $_.MailboxGuid -confirm:$false }
See the size of mailboxes sorted by size:
Get-MailboxStatistics | Sort-Object TotalItemSize –Descending | ft DisplayName,@{ expression={$_.TotalItemSize.Value.ToKB()}},ItemCount
Click image for 1920 x 1080 version.
You may use this image for personal use only. Please contact me for business use.

Ok, that’s probably the longest post title I’ve used yet.
Here’s what I’m working with: a form with a textbox a button and a listbox. Users enter text into the textbox and hit the button to search for information which is returned into the listbox.
The first issue was I don’t want to have to click the search button to start the search. I wanted to be able to just hit enter after typing text. The button triggers vb code behind the page to do the search.
So I found adding the following to the Page_Load sub-routine allowed me to hit enter in the textbox which triggers the button code:
txtSearch.Attributes.Add(“onkeypress”, “return clickButton(event,’” + btnSearch.ClientID + “‘)”)
Replace txtSearch with the id of your textbox and replace btnSearch with the id of your button.
Next, I wanted the text in the textbox to be highlighted/selected after performing a search so you could turn around and type something else and do another search without touching the mouse.
This is accomplished by adding the following to the Page_Load sub-routine:
Me.txtSearch.Focus()
txtSearch.Attributes.Add(“onfocus”, “JavaScript:document.getElementById(‘” + txtSearch.ClientID + “‘).select();”)
Replace txtSearch with the id of your textbox.
Note: Sometimes when you copy and paste code like that above the quotes and or apostrophes can get funky and need to be corrected.
Click image for 1920 x 1080 version.
You may use this image for personal use only. Please contact me for business use.
Click image for 1920 x 1080 version.
You may use this image for personal use only. Please contact me for business use.

I use Ping (not the sort of ping in the picture above) to make sure I can communicate with my servers all the time. Windows Server 2008 doesn’t allow Ping responses through the Windows Firewall.
Here’s how to enable Ping responses:
Open the Windows Firewall Advanced settings (Open Network and Sharing Center, click Windows Firewall bottom left, then Advanced settings).
Find the File and Printer sharing (Echo Request – ICMPv4-In) in the Inbound Rules section and ICMPv6 if you want to enable IPv6 responses.
Double click each rule and select enabled or right-click and select Enable Rule.
You should now be able to ping the server.