Exchange Shell Commands: launch from a script?

medium_grade
medium_grade used Ask the Experts™
on
I am putting together a disaster recovery document for a client. In one particular case, there are a few commands which must be run from the Exchange Management Shell. Can I place these commands into a single file so that they can be run by simply double-clicking? That would be ideal.

Let me know. Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Manpreet SIngh KhatraSolutions Architect, Project Lead
Top Expert 2013

Commented:
Yes you can create a BAT file or a PS1 and simply run it using the Exchange Shell

- Rancy

Author

Commented:
I assume the PS1 file need only contain commands that I would normally execute in the Exchange Management Shell, correct? Does the file need anything else?
AkhaterSolutions Architect

Commented:
yes ps1 contains only the commands nothing else

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial