Solved

Basic question about getting started with Windows Powershell v1.0

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
To show how to create a transport rule 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 >> Rules tab.:  To cr…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

747 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

11 Experts available now in Live!

Get 1:1 Help Now