exsuprt
asked on
Exchange Powershell Snap-In problem/question
I wrote a powrshell script that creates a form for user input then based on the answers it runs several Exchange (2010) commands. I used PowerGUI Pro to compile the script to an .exe and created a link on our Sharepoint intranet for users to run. The issue I have is I get an Exchange Snap-in error when I run the script on a PC that does not have the Exchange snap-in registered. It is not feasible to add the snap-in to each machines Powershell that would run this script so my question is, is there a way around this issue or another way to accomplish the same task? I've spent a lot of time getting this script setup and would hate to waste it this close to the end of the project.
Thank you for your help,
Sean
Thank you for your help,
Sean
As of today, I don't think there is any way around this. The powerGUI ability to create an EXE is new and may offer this additional feature in the future.
ASKER
I think this is less PowerGUI and more a Powershell deal. Is there a way maybe within the Powershell script that could add something to the local machine's Powershell or profile so I can successfully execute this script? How about another method that could be added to or separate from the script that could allow me to accomplish the same thing? I know this is far fetched but anyway the servers Powershell shell could be run even though it is being run within a local users PC?
I know I might be reaching here but any thoughts would be appreciated.
I know I might be reaching here but any thoughts would be appreciated.
You could use a remote execute. That way, each user would run it on the server.
Running Remote Commands
http://technet.microsoft.com/en-us/library/dd819505.aspx
and from there:
http://technet.microsoft.com/en-us/library/dd315384.aspx
And a couple other that talk about it.
http://www.ravichaganti.com/blog/?p=1025
http://blogs.technet.com/b/heyscriptingguy/archive/2009/10/29/hey-scripting-guy-october-29-2009.aspx
Running Remote Commands
http://technet.microsoft.com/en-us/library/dd819505.aspx
and from there:
http://technet.microsoft.com/en-us/library/dd315384.aspx
And a couple other that talk about it.
http://www.ravichaganti.com/blog/?p=1025
http://blogs.technet.com/b/heyscriptingguy/archive/2009/10/29/hey-scripting-guy-october-29-2009.aspx
ASKER
Good informaiton but so far I have not been able to get any Exchange command to work using the remote functionality in Powershell. I can use regular Powershell commands (get-process, etc.) but nothing related to Exchange.
Does anyone know if this is possible? If not can anyone else think of anything that could answer my original question?
Thanks
Does anyone know if this is possible? If not can anyone else think of anything that could answer my original question?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I think this will do what I need it to do, will test as soon as possible but I wanted to assign points now for your help. My apologies for the delay in completing this ticket.
Thanks again,
Sean
Thanks again,
Sean
Thanks for the points and the delay was nothing relative to most Qs for me. Good luck.