Showing posts with label Powershell. Show all posts
Showing posts with label Powershell. Show all posts

Friday, April 10, 2009

Tech Tips: Cannot run Exchange command in PowerShell, do this first...

If you're new to Microsoft PowerShell (PS) and Exchange 2007, you soon will realized that why you're not able to run any command in PS and keeps getting the error similar to the following:

(example:)
The term 'Move-Mailbox' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.
At line:1 char:13

Type in the following and you're good to go:

1. To check if the snapin has been installed:

PS C:\>Get-PSSnapin -Registered

Name : Microsoft.Exchange.Management.PowerShell.Admin
PSVersion : 1.0
Description : Admin Tasks for the Exchange Server

To manually add this to the current PowerShell session, use the Add-PSSnapin cmdlet:

PS C:\>Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin

This is just the command to allow the exchange snapin to integrate with the PS, for more info about the usage, hit the following link:

http://mcpmag.com/features/article.asp?EditorialsID=763


Monday, March 16, 2009

Tech Tips: How to install Exchange Management Tools for Exchange 2007 on Vista

  1. Download Windows PowerShell for Windows Vista from
    http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx

  2. Run the installation package to install Windows PowerShell.

  3. From the Start menu, open the Windows Vista Control Panel and then open the Programs and Features applet.

  4. In the Tasks area, click Turn Windows features on or off.

  5. Expand Internet Information Services, expand Web Management Tools, and then expand IIS 6 Management Compatibility.

  6. Select the checkboxes for IIS 6 Management Console and IIS 6 Metabase and IIS 6 configuration compatibility, and then click OK.

  7. Download Exchange 2007 Management Tools from Microsoft website, make sure to select the correct version based on your OS as well as the type of Processor whether it's 32bit or the 64bit version and install it. 32-bit version is available here:
    http://www.microsoft.com/downloads/details.aspx?familyid=6BE38633-7248-4532-929B-76E9C677E802&displaylang=en
For more info about Microsoft Exchange Server requirement, visit this link: http://technet.microsoft.com/en-us/library/aa996719.aspx