Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/11/2024 06:38 AM - last edited on 06/11/2024 07:13 AM by Sunil
Hi All,
I am trying to call a powershell file in the IIS server and getting 404 not found error. Can anyone help?
I am not able to call from postman on the IIS server too. Not sure what is missing. I have checked the configs based on other forum posts and confirmed that everything is in place.
Here is my createaccount json
{
"accountIdPath": "accountName",
"responseColsToPropsMap": {},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://xxxxx/SaviyntApp/PS/ExecutePSScript",
"httpMethod": "POST",
"httpParams": "{\"Script\":\"Powershell.exe C:\\\\\\\\inetpub\\\\\\\\wwwroot\\\\\\\\SaviyntApp\\\\\\\\PS\\\\\\\\ExecutePSScript\\\\\\\\TestCommand.ps1 -UserEmail ${user.email}\"}",
"httpHeaders": {
"Authorization": "Basic ________________"
},
"httpContentType": "application/x-www-form-urlencoded",
"SuccessResponses": {
"": [
"Success"
]
},
"unsuccessResponses": {
"responseMessage": [
"\"Failed\"",
"\"Powershell script taking too long Sample input: Invoke-Command -ComputerName \\\"RDCPVW-SAVI01.prim.com\\\" -ScriptBlock {command to execute} -Credential $Cred\""
]
}
}
]
}
[This message has been edited by moderator to mask sensitive info]
06/13/2024 01:58 AM
Hello @PratithShetty,
Are you able validate it in the postman.
Thanks.