Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

My first post in this forum. My question is simple. I have an asp.net website running on server A and exchange server running on server B. I want to execute Powershell commands like "Get-mailbox" on server B remotely from server A. I know how to use Runspace and Pipeline locally but I am not able to find an appropriate solution to execute these commands on remote server (Server B in my case).

 

Can anyone please point me to the right directory with some sample code or so ? (I believe impersonation may be the solution but being novice I'm not able to proceed further).

 

Regards,

John

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...