• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 858
  • Last Modified:

Exchange managemenbt shell script - move-mailbox

I'm in the process of migrating users from E2k to E2k7.
I need to use a script to automate (as only one instance of EMC can run at a time)

http://blogs.msdn.com/adamfazio/archive/2007/10/27/hey-exchange-2007-move-the-mailboxes-email-me-the-log-when-you-re-done.aspx

I am having problems running this PS1 file as directed ni this article - tried to invoke it both from Windoes Explorer file, and from EMS itself (in the correct directory) with the follwing error returned:

"The term 'moveusers.ps1' is not recognized as a cmdlet, function, operable program, or script
At line:1 char:13"

Can anyone help me get this script working?

Cheers, P.

0
prospatho
Asked:
prospatho
1 Solution
 
mass2612Commented:
Hi,

Sounds like your execution policy is set to the default.

Get-ExecutionPolicy
Set-ExecutionPolicy Unrestricted - will allow all scripts to run

http://www.microsoft.com/technet/scriptcenter/topics/winpsh/manual/run.mspx
0
 
prospathoAuthor Commented:
Hi Mass~
Thanks,
.\  did the job!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now