Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Basic question about getting started with Windows Powershell v1.0

Posted on 2007-11-29
5
Medium Priority
?
311 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 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

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

The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
Eseutil Hard Recovery is part of exchange tool and ensures Exchange mailbox data recovery when mailbox gets corrupt due to some problem on Exchange server.
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

916 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