<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello Anton,</p>
<p>I have noticed your questions, as I have noticed previous
questions. However, I'm quite disinclined to provide answers. This
list is an open community discussion, not a commercial support
channel.</p>
<p>Firstly, the list is governed by a principle of reciprocity. If
you expect help from the community, you should probably try to
help other members of community yourself.</p>
<p>Secondly, it is expected that you make some effort to resolve the
problem yourself. Microsoft environment, and especially WinRM is a
complicated and non-transparent matter. You can help the community
by trying to understand the operation of Microsoft technologies
and perhaps precisely pinpoint the problem. As all
midPoint-related code, source code of the connector is available
and you are free to have a look at it. The connector is not
complicated.</p>
<p>Full community guidelines are available here:
<a class="moz-txt-link-freetext" href="https://wiki.evolveum.com/display/midPoint/Community+Guidelines">https://wiki.evolveum.com/display/midPoint/Community+Guidelines</a><br>
</p>
<p>This is how open source communities work. This is not a free
ride, it is mutual cooperation. If you feel that you cannot
contribute back with your skill, time or experience, then you can
contribute with money. There are commercial support services
provided by Evolveum.</p>
<pre class="moz-signature" cols="72">--
Radovan Semancik
Software Architect
evolveum.com
</pre>
<div class="moz-cite-prefix">On 30. 6. 2020 7:40, Щенев Антон
Вячеславович wrote:<br>
</div>
<blockquote type="cite"
cite="mid:651689E53CC19841968296084942E1E849E8AFB1@ekt-asbt-mxs001.beeper.ru">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Текст выноски Знак";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.a
{mso-style-name:"Текст выноски Знак";
mso-style-priority:99;
mso-style-link:"Текст выноски";
font-family:"Tahoma","sans-serif";}
span.tlid-translation
{mso-style-name:tlid-translation;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Could you pls answer me
how can I check </span>
<span class="tlid-translation"><span lang="EN">the operation
of the command winrs directly from the console(Linux)?<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="tlid-translation"><span
lang="EN"><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span class="tlid-translation"><span
lang="EN">This script works fine from remote machines and
creates a mailbox, but when working through midpoint in
Windows logs is always the error(</span></span><span
style="font-size:9.0pt;font-family:"Segoe
UI","sans-serif"" lang="EN-US">WSMan
operation CreateShell failed, error code 2150859120</span><span
class="tlid-translation"><span lang="EN">)<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="tlid-translation"><span
style="font-size:9.0pt;font-family:"Segoe
UI","sans-serif"" lang="EN-US"><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span class="tlid-translation"><span
lang="EN"><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span lang="EN-US"><code>winrs
-r:<a class="moz-txt-link-freetext" href="http://my.domain.com:5985">http://my.domain.com:5985</a> -u:????? -p:??????
powershell.exe -command "$username = '????'; $password =
ConvertTo-SecureString '?????' -asplaintext -force;
$UserCredential = New-Object -TypeName
System.Management.Automation.PSCredential -argumentlist
$username,$password; $Session = New-PSSession
-ConfigurationName Microsoft.Exchange -ConnectionUri
<a class="moz-txt-link-freetext" href="http://my.domain.com/powershell">http://my.domain.com/powershell</a> -Authentication Kerberos
-Credential $UserCredential; Invoke-Command -Session
$Session {enable-mailbox -Identity
"test.test"};Get-PSSession | Remove-PSSession"</code><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Segoe
UI","sans-serif"" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I tried this option too<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Winrs -ad -u:?????
-p:?????? powershell.exe<o:p></o:p></span></p>
<p class="MsoNormal"><span class="tlid-translation"><span
lang="EN">The result is the same:
</span></span><span
style="font-size:9.0pt;font-family:"Segoe
UI","sans-serif"" lang="EN-US">WSMan
operation CreateShell failed, error code 2150859120<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:#1F497D;mso-fareast-language:RU"><img
id="Рисунок_x0020_6"
src="cid:part1.BAD76627.245368C8@evolveum.com"
alt="Описание: Описание: Описание:
cid:image004.png@01D47D0D.3B8B0380" class="" width="247"
height="4"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:#1F497D;mso-fareast-language:RU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:6.0pt;color:#1F497D;mso-fareast-language:RU"> </span><span
style="color:#1F497D;mso-fareast-language:RU"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:#1F497D;mso-fareast-language:RU">С уважением,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:#1F497D;mso-fareast-language:RU">Щенев Антон
<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>