run scripts in exchange management shell.

5 pts.
Tags:
Exchange Management Console
Exchange Management Shell
Scripting
Hi, all. I do have a problem to run scripts in exchange management shell. When I do run that as > c:script.ps1 in example. The shell opens the file in notepad instead to run that. Thank You in advance.
ASKED: December 17, 2008  6:29 PM
UPDATED: December 18, 2008  1:31 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Using the Exchange Management Shell

The Exchange Management Shell, built on Microsoft Windows PowerShell technology formerly codenamed “Monad”, provides a powerful command-line interface and associated command-line plug-ins for Exchange Server that enable automation of administrative tasks. With the Exchange Management Shell, administrators can manage every aspect of Microsoft Exchange 2007. They can enable new e-mail accounts and configure SMTP connectors, store database properties, transport agents, and more. The Exchange Management Shell can perform every task that can be performed by Exchange Management Console in addition to tasks that cannot be performed in Exchange Management Console. In fact, when a task is performed in the Exchange Management Console, the same command is made available to the Exchange Management Shell and called to process the request.

Are you just trying to run the script or have you followed the directions below?

The Exchange Management Shell also provides a robust and flexible scripting platform that can reduce the complexity of current Microsoft Visual Basic scripts. Tasks that previously required many lines in Visual Basic scripts can now be done by using as little as one line of code in the Exchange Management Shell.

The Exchange Management Shell provides this flexibility because it does not use text as the basis for interaction with the system, but uses an object model that is based on the Microsoft .NET platform. This object model enables the Exchange Management Shell cmdlets to apply the output from one command to subsequent commands when they are run.
Opening the Exchange Management Shell

You can open the Exchange Management Shell by using either of the following procedures. Each procedure loads the Exchange Management Shell snap-in into the Windows PowerShell. If you don’t load the Exchange Management Shell snap-in before you run an Exchange Management Shell cmdlet, you will receive an error.
To open the Exchange Management Shell from the Programs menu

1. Click Start, click Programs, and then click Microsoft Exchange Server 2007.
2. Click Exchange Management Shell.

To add the Exchange Management Shell snap-in from Windows PowerShell

1. Click Start, click Programs, and then click Windows PowerShell 1.0.
2. Click Windows PowerShell.
3. Type the following command:

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following