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