Solved

Basic question about getting started with Windows Powershell v1.0

Posted on 2007-11-29
5
304 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
Find out what you should include to make the best professional email signature for your organization.
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
how to add IIS SMTP to handle application/Scanner relays into office 365.

932 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now