Link to home
Start Free TrialLog in
Avatar of georgedschneider
georgedschneiderFlag for United States of America

asked on

Exchange modules in Power Shell ISE

Is there a way to load the exchange modules into Power Shell ISE so I can run Exchange 2010 commands from within Power shell for scripting and scheduling jobs through task manager?  The exchange 2010 Management tools are already installe don my scripting server.
ASKER CERTIFIED SOLUTION
Avatar of Wasim Shaikh
Wasim Shaikh
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of georgedschneider

ASKER

Silly me I thought I had run this but apparently not.  Is there any way to have this automatically so if I schedule a script to run through task scheduler it will?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Is this for any user or just the currently logged on user?
For currently logged on user
Is this what would be needed in order for me to create scripts to run against exchange and schedule them on my scripting machine?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
So basically all i need to do on my scripting machine that has Power shell, Exchange tools include this as part of the exchange scripts that I intend to run as a scheduled task.
Exchange tools will make the snap-in available on machine, If you open "Exchange Management Shell" the Snap-in will be loaded automatically, whereas if you open "Windows Powershell" the Snap-in will not be loaded in the session and hence you need to run the above mentioned code, so that when the script runs very 1st thing it does is to check the availability of Snap-in otherwise the script will fail.
What is the difference between the various Powershell ISE profile types.  What are the hosts profile types used for?

Current user, PowerShell ISE
All users, PowerShell ISE
Current user, All hosts
All users, All hosts