You have to do some extra semi-complex magic when launching the process to break out of the winrm "jail"- otherwise anything you start will be nuked when your winrm session ends (by WinRM design, not Ansible's). I'm building said magic into Ansible for 2.2 to support async tasks on Windows (among other things), and I'll probably expose it on win_shell/win_command as well.
Not sure what you mean by "get through the Windows login process", but have you looked at win_reboot <https://docs.ansible.com/ansible/win_reboot_module.html>? On Thursday, July 7, 2016 at 11:48:53 AM UTC-7, skinnedknuckles wrote: > > I have tried starting a new process from inside a .net console application > called by ansible but it didn't work. That process should have it's own > thread right? The process shows up momentarily on the Task Manager and > then disappears. Alternatively I could reboot if there was some way to get > through the Windows login process after rebooting. That would work as well. > > On Wednesday, May 11, 2016 at 10:01:52 AM UTC-5, skinnedknuckles wrote: >> >> Management Node: >> CentOs 7.1 >> Ansible 2.1 >> Remote Node: >> Windows 7 >> Powershell 3.0 >> >> How do I launch an executable on a remote node running Windows 7? As I >> understand win_scheduled_task only works with Windows Server 2012 and >> win_nssm is only for startup services. Is there any other way do do this? >> If not, is there any way to access the Invoke-Command option of >> Powershell? I suppose a module could be written to do that but I'm new to >> python and doubt I could pull it off. >> >> Thanks, >> >> Jonathan >> > -- 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/a7e77752-e93d-4c83-a3f0-01f95d2e7ac4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.