?
Solved

Exchange Powershell Snap-In problem/question

Posted on 2011-09-13
7
Medium Priority
?
1,012 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:exsuprt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 36531439
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.
0
 

Author Comment

by:exsuprt
ID: 36531881
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.

0
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 36532208
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:exsuprt
ID: 36543016
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
0
 
LVL 16

Accepted Solution

by:
Bryan Butler earned 2000 total points
ID: 36563223
Here's setup instructions:

Connect Remote Exchange Management Shell to an Exchange Server
http://technet.microsoft.com/en-us/library/dd297932.aspx
0
 

Author Closing Comment

by:exsuprt
ID: 36601885
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
0
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 36716832
Thanks for the points and the delay was nothing relative to most Qs for me.   Good luck.
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question