Dear All,
        I have an query/issue.
>From my windows powershell server i am able to execute powershell scripts 
on remote windows machines on same domain without asking for password using 
the domain account.
If i try the same thing via ansible, i get an error. 

Executing just Invoke-command -computer <computer> -ScriptBlock 
{Get-Service} 

or

New-PSSession -ComputerName <computer>
Enter-PSSession -ComputerName <computer>
Get-Service
Invoke-command -computer <computer> -ScriptBlock {Get-Service}
exit
 
doesn't work. Get error saying "A specified logon session does not 
\r\nexist. It may already have been terminated"

win_ping and kerberos works fine. I have used the same domain user to 
connect to the powershell server in windows.yml file.
kindly advise.

Regards,
Rajesh

-- 
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/4516eaf5-4a39-4032-92ab-7c68e9c993a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to