That did the trick, thanks!

On Thursday, 8 September 2016 17:49:34 UTC+2, Matt Davis wrote:
>
> (typical cases only need the "read" and "execute" permission)
>
> On Thursday, September 8, 2016 at 8:47:45 AM UTC-7, Matt Davis wrote:
>>
>> Yes, it's absolutely possible. Usually the limiting factor on a default 
>> install is the WinRM listener ACL- you can see/alter this via:
>>
>> winrm configSDDL default
>>
>> and add the necessary users/groups (or add the existing Windows Remote 
>> Management group).
>>
>> On Wednesday, September 7, 2016 at 1:33:54 PM UTC-7, 
>> [email protected] <javascript:> wrote:
>>>
>>> Hello,
>>>
>>> Is it possible to use a non-administrator user to run Ansible against 
>>> Windows hosts and if yes, how?
>>>
>>> I've used ``invoke-command -computername localhost -credential ansible 
>>> -scriptblock {$env:computername}`` to test inside Powershell, which works 
>>> fine only if the Ansible user is Administrator.
>>>
>>> What did not help it:
>>>
>>> * Add user to Windows Remote management group
>>> * Add user to Windows Remote management and WinRMRemoteWMIUsers__ group
>>>
>>> Test target is this SRV2012R2 vagrant box: 
>>> https://atlas.hashicorp.com/mwrock/boxes/Windows2012R2
>>>
>>> Regards
>>> Avaro Aleman
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8b244bec-d6b9-4368-ba58-e27206f80a6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to