Windows Server 2008 R2 Announced!
Oliver over at the Windows Server Division Weblog has just written a post on the Announcement of Windows Server R2, among the enchancements that caught my eye were the ones to do with virtualization, a new Hyper-V is built in offering some great new features.
Considering I will be consolidating alot of my servers over the coming months this will add some great benefits. I currently have 2 Exchange 2007 servers riunning on a Hyper-V box and seem to be going OK. One is running the CAS and Hub Transport Roles and the other is running the MailStore Role.
Make sure you check out the other inclutions in R2 on the Windows 2008 Server Website.
Disable Inactive Active Directory User Accounts
Let me first start by saying that we have a pretty unorginsaeed Active Directory Structure at the moment, but that will change. Today I took the first step to getting some order in our AD Structure, disable all accounts that ahve been inactive for a period of time. To do this I simply used DSQuery and piped the results to DSMod and there we have it all the accounts are disabled.
Here was the command I used:
dsquery user -inactive 40 -limit 0 | dsmod user -disabled yes
I know, I know pretty simple but something that is good to have in the tool kit. I then went on and did it using the computer accounts. Then from Active Directory Users and Computers snap in I could then create a query to lookup all the disabled user and computer account and eother delete them or move them to a temp OU before deleting.
Daniel Anderson
Cleaning up my Active Directory.
How to Backup Exchange 2007 Mailboxes to PST Files
As the migration form Exchange 2003 to Exchange 2007 continues, one of the areas that is a MUST is the ability to backup mailboxes. In this Exchange 2007 How To, I will show you how you can export malboxes from your Exchange 2007 Database to individual PST Files.
In order to export or import mailboxes to PST files you will need to make sure that the following this are in order.
- Export/Import to PST must be run from a 32 bit client machine with Exchange Management Tools installed (Version Exchange 2007 SP1 or later). The 32bit requirement comes from a dependency with the Outlook client.
- Either Outlook 2003 or Outlook 2007 must be installed on the client machine.
- The user running the task must be an Exchange Organization Admin or an Exchange Server Admin on the server where the mailbox to export/import lives.
Open up the Exchange Management Shell, then what we are going to do is pipe the results from the GET-MAILBOX command to EXPORT-MAILBOX, Like so.
get-mailbox -database “SERVER_NAME\DATABSE_NAME” | export-mailbox -PSTFolderPath C:\PSTFiles
What I think is great about this is that you can select different mail databases. For example we have 2 seperate databases, one for staff and one for students. Therefore we can split this process up and run it on different days.
Next up is to create a scheduled task to run the Powershell Command. Subscribe to my RSS Feed to keep up to date with more Windows Server Tips, Tricks and Tutorials.
How to Open All Mailboxes on an Exchange 2007 Database
I have been working on a migration from an Exchange 2003 environment to Exchange 2007 over the past week and have just about completed it. A thing that I wanted to point out that I thought was pretty cool was how easy it was to grant people permissions to open up other users mailboxes from the new Exchange 2007 Command Shell (PowerShell)
Add-ADPermission “DataBase Name” -User “Username” -ExtendedRights “Receive As”
There is a great need for this in my environment as I am often asked to track BAD Emails that students may or may not have sent. Executing the above command and replacing “Username” with my username, “Database Name” with the name of the database, in my case I have 2 seperate mail store databases for Staff and Students, and bingo I now have the ability to open all mailboxes in the database that I specified.
