Rebelz – We have one of Europe’s widest ranges of BJJ & Grappling gear.

Removing disconnected mailboxes in Exchange 2007

In Exchange Management Console you can’t purge disconnected mailboxes. To delete a disconnected mailbox in Exchange 2007 do the following:

1. List all disconnected mailboxes in Exchange Management Shell.
> Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid

2. Remove a mailbox
> Remove-Mailbox -Database <database name> -StoreMailboxIdentity <mailbox guid> -confirm:$false

Example:
> Remove-Mailbox -Database companyname -StoreMailboxIdentity 6c158c01-0e3f-4a71-8dda-e74921b90b71 -confirm:$false

To remove all disconnected mailboxes i found this on MPCPblog:
1. Remove all disconnected mailboxes
> $users = Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid,Database

2. Now, all disconnected mailboxes are in a variable and you need to run following cmdlet to remove all of them
> $users | ForEach { Remove-Mailbox -Database $_.Database -StoreMailboxIdentity $_.MailboxGuid -confirm:$false }

Remove the keyobard on a HP Compaq NC2400

1. Remove all 6 keyboard screws.

2. Flatten out the laptop.

nc2400_remove_keyboard_1

3. Use a small flate blade screwdriver to remove the touch sensitive panel. You dont have to disconnect the ribbon cable (connecting the panel to the laptop). Just lay the panel on top of the screen.
nc2400_remove_keyboard_2

nc2400_remove_keyboard_3

4. Disconnect the two ribbon cables(connecting the keybord to the laptop).
nc2400_remove_keyboard_5

nc2400_remove_keyboard_6

Allowing PowerShell executing scripts

By default PowerShell is restricted to not allow script execution. To allow script execution do the following

Open PowerShell in elevated mode (run as administrator) and run the following command:
Set-ExecutionPolicy unrestricted

To verifiy how if script execution is allowed or not run the following command in PoweShell:
Get-ExecutionPolicy

Display mailbox size in Exchange 2007

To display mailbox size in Exchange 2007 run this command in Exchange Management Shell.
get-mailboxstatistics | fl displayname, totalitemsize

To pipe the output into a text file.
get-mailboxstatistics | fl displayname, totalitemsize > c:\mailboxsize.txt

veiwing mailbox sizes in exchange 2007

Enable autologon in Windows Server 2008

To make the option “Users must enter a user name and password to use this computer” visible on a domain joined Windows Server 2008 do the following:

1. Run the following comand in cmd:
reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon” /v AutoAdminLogon /t REG_SZ /d “1” /f

2. Click start, run. Write: control userpasswords2 and click ok to “open advanced user accounts control panel”.
control userpasswords2

3. Make sure “Users must enter a user name and password to use this computer” is disable. Click ok.

4. Specify username and password to use in autologon.
autologon

Access denied when adding TCP/IP printer port in Windows 2008

You get the following error when adding a printer using a TCP/IP port:

add_printer_access_denied

The problem is that you need to “elevate to administrator privileges” (run as administrator) to add a TCP/IP port. I have’nt found any way to do that when adding a printer. The solutions is to logon as administrator in the console and then add the print and TCP/IP port.

Update:
To add a printer as administrator do the following.
1. Open printers in control panel.
2. Right click in the white area. Choose “Run as administrator”/”Add printer…”.

privileges
1 7 8 9 10 11