Tuesday, 29 November 2011

Backing up Ex2010 mailboxes to PST

Exchange 2010 SP1 has a new command to import and export to a PST.

First you need to give yourself permissions to do this with the following command:

New-ManagementRoleAssignment –Role “Mailbox Import Export” –User “<username>”

You will need to close down and open up the console again to gain access to the commands below.

Then you need to run the following to actually Export for a PST

New-MailboxExportRequest -Mailbox user@domain.com -FilePath \\path\to\file.pst 

If it's a backup of the archive you're after add -IsArchive on the end

You can check on the progress of the backup with:

Get-MailboxExportRequest

or

Get-MailboxExportRequestStatistics username\MailboxExport -IncludeReport | fl | Out-File c:\temp\output.txt

For full details.

You can clear any old Mailbox requests with:

Remove-MailboxExportRequest -Identity "username\MailboxExport"

or 

Get-MailboxExportRequest | Remove-MailboxExportRequest

to remove them all (and be prompted)

Very simple!

I hope this article helps you out... please click on an advert to show your appreciation.

Thursday, 13 October 2011

Configuring Room Finder Lists in Exchange 2010

Outlook 2010 and Exchange 2010 make booking resources like Meeting Rooms much easier.
We all know that you can invite a resource mailbox to a meeting to reserve it for your use, but Outlook 2010 allows you to view which meeting rooms are available at a particular time.


To group resources together, fire up Exchange Management Shell and type:

New-DistributionGroup -Name “Head Office Meeting Rooms” -Members "Meeting Room #1","Meeting Room #2","Meeting Room #3" -RoomList

I hope this tip helps you, please click on an advert to show your appreciation.

Tuesday, 6 September 2011

Microsoft seem to make every effort to hide the Google Search provider for IE9 - here's the direct link:

http://www.microsoft.com/windows/ie/searchguide/en-en/default.mspx#


Friday, 26 August 2011

Changing the default User and Computer OU

I like to keep my "Real" Users in a separate folder away from all the other system accounts. This ensures that only valid accounts are displayed if you use LDAP lookups for various applications (e.g. a network scanner)


Windows 2003 introduced a couple of new commands that allow you to change the default location:


Users:


   ReDirUsr "OU=RealUsers,DC=domain,DC=com"


Computers:


   ReDirCmp "OU=RealComputers,DC=domain,DC=com"


You need to run this on a Domain Controller, and you need the AD to be in Windows 2003 mode as a minimum.


As you want to ensure the path to the new directory is correct, I recommend Softerra LDAP browser (it's free) which allows you to connect to the AD with LDAP and copy object locations.


I hope this helps you out...please click on an advert to show your appreciation.

Tuesday, 16 August 2011

0x8007010b errors in Task Scheduler

Windows 7 and 2008 introduced a new, more comprehensive Task Scheduler.


While the "Create Task" button provides you with every option available, I could not run any tasks without the  0x8007010b error message.


It turns out that this error is caused by the "quotes" in the Start in field. The "Program/script" field needs quotes (if there is a space in the path to the file, but all quotes must be stripped from the "Start in (optional)" field.


It's counter-intuitive, but that's the way Microsoft wrote it.




Anyway, I hope this tip helps, and don't forget to click on the ads to show your appreciation :)

Friday, 5 August 2011

F5 URL and URI Variables


iRules are a fantastic feature of the F5.
Sometimes you need to do operations based upon the actual URL which has been typed and this page should give you a handy lookup guide to show which variables give up which parts of the URL.
Example URL: http://example.com/directory1/directory2/directory3/filename.html?
argument1=value1&argument2=value2&argument3=value3



Variable Description Example
[HTTP::host] hostname example.com
[HTTP::uri] Everything after the hostname example.com/directory1/directory2/directory3/filename.html
?argument1=value1&argument2=value2&argument3=value3
[HTTP::path] the directory path and file name /directory1/directory2/directory3/filename.html
[HTTP::query] everything after the ? argument1=value1&argument2=value2&argument3=value3
[URI::path [HTTP::uri] depth] number of directories value of 3
[URI::path [HTTP::uri] 1 1]
directory 1
directory1
[URI::path [HTTP::uri] 2 2]
directory 2
directory2
[URI::path [HTTP::uri] 3 3]
directory 3
directory3
[URI::query [HTTP::uri] "argument1"]
argument 1
value1
[URI::query [HTTP::uri] "argument2"]
argument 2
value2
[URI::query [HTTP::uri] "argument3"]
argument 3
value3
[URI::basename [HTTP::uri]]
file name
filename.html

If this page proves useful, please click on one of the adverts on the side

Monday, 11 April 2011

Moving Public Folders from Exchange 2003 to Exchange 2010

Migrating from Exchange 2003 can be a worrisome process.
Exchange is probably the most mission critical server in your organisation you want to ensure that no data is lost.
Public folders are often overlooked and it's only when you get towards decommissioning the server that you start to think about how to get the data off it.

The concept is easy, Exchange 2003 will only allow you to delete a PF store, if all PFs are replicated on other servers.

Microsoft have provided a few scripts to help you set up the PF replication they are located on the Ex2010 server in C:\Program Files\Microsoft\Exchange Server\V14\Scripts:


AddReplicaToPFRecursive.ps1 – adds a server to the replica list for a public folder and subfolders.
For example, to add EX2010 as a replica for all public folders on server EX2003 starting at the root folder of \ you would run this command.
AddReplicaToPFRecursive.ps1 –Server EX2003
 –TopPublicFolder \ –ServerToAdd EX2010



MoveAllReplicas.ps1 – this script replaces all of the replicas on one server with the new server. It works over the whole Public Folder store so there is no need to specify the root folder.
To move all replicas from EX2003 to EX2010 you would run this command.
MoveAllReplicas.ps1 –Server EX2003 –NewServer EX2010


To check that the replicas have been set on the folders, you can run:
Get-publicfolder -recurse |fl identity,replicas

Once the replicas are all up to date, you should be able to remove the Ex 2003 public folder store.


I hope this tip proves useful for you, please remember to click on the ads to show your thanks.