Hi,
I'm search solution on group, but not finded!
I am utilizing
cherry_py of salt-api but i have error when i execute a script powershell by postman using JSON.
The following exemple:
{"client": "local",
"username": "salt",
"password": "salt",
"eauth": "pam",
"tgt": "ms-01",
"fun": "cmd.run 'E:\\scripts\\rpo-promotion.ps1 xpto' shell='powershell' runas='sa...@domain.local' password='salt'"
}
Return:
{
"return": [
{
"ms-01": "'cmd.run 'E:\\scripts\\rpo-promotion.ps1 xpto' shell='powershell' runas='sa...@domain.local' password='salt'' is not available."
}
]
}
If i execute in fun: 'test.pin', return is success.
{"client": "local",
"username": "salt",
"password": "salt",
"eauth": "pam",
"tgt": "ms-01",
"fun": "test.ping'"
}
Return:
{
"return": [
{
"ms-01": true
}
]
}
Salt-master = Centos 7
Salt-minion (ms-01) = Windows Server 2022 Standard
Somebody passed for this?
Thank's.