[ansible-project] Re: How to make symbolic links in windows via Ansible ?

2016-02-12 Thread ishan jain
Hi Jon,

I am using windows server 2012 R2. Disabling UAC doesn't seem like a good 
idea, specially with my automation scripts on a regular basis. I am 
connecting via admin account obviously but that doesn't seem to be enough 
for making a symlink. I will have to start a command shell using 'Run as 
admin'.


On Thursday, 11 February 2016 22:15:19 UTC+5:30, J Hawkesworth wrote:
>
> Obviously you will need to connect as an Administrator user.
>
> You don't mention which version of windows you are controlling but you may 
> just need to temporarily disable UAC prompt for Administrator users.
>
> On Server 2012 the setting for this is in
>
>
>  HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
> ConsentPromptBehaviorAdmin
> 0
>
> set it back to 2 to restore current default behaviour.
>
> Hope this helps.  I have not used mklink though.
>
> Jon
>
>  
>
> On Thursday, 11 February 2016 14:47:40 UTC, ishan jain wrote:
>>
>> I am trying to make a lot symbolic links for my directories and files and 
>> manually i use mklink command to make them. Oddly enough, this command 
>> requires admin level privileges to create links. 
>>
>> How can i use mklink via ansible with admin privileges to create symbolic 
>> links ?
>>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8187cfc4-cccf-4bcd-a472-9c488303639b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: How to make symbolic links in windows via Ansible ?

2016-02-11 Thread 'J Hawkesworth' via Ansible Project
Obviously you will need to connect as an Administrator user.

You don't mention which version of windows you are controlling but you may 
just need to temporarily disable UAC prompt for Administrator users.

On Server 2012 the setting for this is in

 HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
ConsentPromptBehaviorAdmin
0

set it back to 2 to restore current default behaviour.

Hope this helps.  I have not used mklink though.

Jon

 

On Thursday, 11 February 2016 14:47:40 UTC, ishan jain wrote:
>
> I am trying to make a lot symbolic links for my directories and files and 
> manually i use mklink command to make them. Oddly enough, this command 
> requires admin level privileges to create links. 
>
> How can i use mklink via ansible with admin privileges to create symbolic 
> links ?
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/53064397-f1be-4029-9fb5-f05a201d337d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.