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] 
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/041bde07-8819-463e-bf7a-b331a60400cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to