-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Executing code on LOCAL exchange server #47
Comments
That's interesting, based on your PowerShell snipped I would assume you would need to have To truly figure out what is happening I would have to see a Wireshark capture of the first WSMan message that your PowerShell code generates. This would show the full URI it is connected to as well as the WSMan Shell Create message which is where the ConfigurationName is used. The trouble is that this would be encrypted so you need to disable the encryption checks on both the client and the server for this to be useful. Anyway let's first try setting |
"PowerShell" makes the same 404. Unfortunately I cannot disable encryption on a server. Any other suggestions how can I debug it? |
Darn it was worth a try.
There's not too much else you can do but this is worth a shot;
I had a look at the code for New-PSSession and it lines up with what I expect. Using There might be some event logs in Windows when using PowerShell itself but I'm honestly not sure what there is for the client side remote powershell operations. Maybe running your |
Thank you for assistance. I will comment on this issue if I will be able to handle this problem. |
I was unable to find a direct way to utilize "Microsoft.Exchange" configuration with pypsrp, but the code below works fine for my purpose. It's ugly but works.
|
Hi, Exchange Remote Management is available throught IIS. You need to use port 443 and path PowerShell. Example:
This worked fine for me with (very old) Exchange 2010 but no more with recent Exchange. |
Sorry it took so long but this has been fixed with #78. Yo have to make sure you set |
Thank you for information. |
Hi! I'm trying to implement following PS code with pypsrp for the local Exchange server:
PS code works fine, but not pypsrp version:
The code above return resource exception:
When changing "path" to "powershell", I got 404:
Can anyone help to identify the problem?
Thank you in advance!
NOTE: issue duplicate is here.
The text was updated successfully, but these errors were encountered: