Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Basic question about getting started with Windows Powershell v1.0

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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
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 a Shared Mailbox 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 Recipients >> Sha…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

715 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