Solved

Basic question about getting started with Windows Powershell v1.0

Posted on 2007-11-29
5
308 Views
Last Modified: 2012-08-13
Our company is trying to migrate from Exchange 2000 to 2007, and right now we're trying to move mailboxes from a Windows 2000 / Exchange 2000 server to a Windows 2003 / Exchange 2007 server.  All of this is being done in a test environment, so no live data is at risk.

Anyway, I came across a page ( http://msexchangeteam.com/archive/2007/07/16/446321.aspx ) that describes how to run a Powershell script to help get this done.  However, I can't seem to get the [Get-Mailbox] scriptlet to work... I keep getting the following error:

=============================================================
The term 'get-mailbox' is not recognized as a cmdlet, function, operable program, or script file.
Verify the term and try again.
=============================================================


I'm a 100% newbie in all this -- the only thing I've done so far, besides [Set-ExecutionPolicy "Unrestricted"], is the first two lines of Powershell code in the above URL:

=============================================================
$source = get-credential
$target = get-credential
=============================================================


My one guess is that I need to do something with Set-Location, so I'm calling scripts from the proper place.  However, I really have no idea what I'm doing -- help!

0
Comment
Question by:deathtospam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 104

Expert Comment

by:Sembee
ID: 20376507
You don't have to do everything in Powershell. Something can still be done in the GUI, like move mailbox.

You should also get your hands on powergui from http://www.powergui.org/ 

Finally if this is in a lab I would suggest you go and download Exchange 2007 SP1 and start using that instead of the RTM.

Simon.
0
 
LVL 9

Author Comment

by:deathtospam
ID: 20377437
How do I move a mailbox from an Exchange 2000 server in another forest to my new Exchange 2007 server (in a new forest), using the GUI?  In the meantime, I'll check out PowerGUI and install SP1, which apparently came out today.


-= DeathToSpam =-
0
 
LVL 9

Author Comment

by:deathtospam
ID: 20377606
I installed PowerGUI, and the same fundamental issue remains -- when I launch the PowerGUI Script Editor, calling "get-mailbox" works, but when I launch the Windows Powershell Prompt, I get the same error as I originally mentioned:

=============================================================
The term 'get-mailbox' is not recognized as a cmdlet, function, operable program, or script file.
Verify the term and try again.
=============================================================
0
 
LVL 104

Accepted Solution

by:
Sembee earned 500 total points
ID: 20378006
Try Starting the Exchange Management Shell, not Powershell itself.

Simon.
0
 
LVL 9

Author Closing Comment

by:deathtospam
ID: 31411763
Looks like that was my problem -- I was opening PowerShell instead of EMS.  Thanks!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
how to add IIS SMTP to handle application/Scanner relays into office 365.
Suggested Courses
Course of the Month8 days, 17 hours left to enroll

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question