and more in a single search tool across platforms. Read the announcement here. |
01/08/2024 02:19 AM
Hi Team,
While Enable Mail script is not working. we are using WIN connector for enable disable mail box.
Script :
{
"CREATEACC": [
"Script=\$pw = convertto-securestring 'password' -asplaintext -force;\$mycred = new-object -typename System.Management.Automation.PSCredential -argumentlist ('xxxxxxl\\\\svcSaviynt',\$pw); \$onprem = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionURI http://hostname/PowerShell/ -Authentication Kerberos;Import-PSSession \$onprem-AllowClobber| out-null; -ScriptBlock {Enable-RemoteMailbox -Identity \'${user.username}' -RemoteRoutingAddress \'${user.username}@xxxxx.mail.onmicrosoft.com'}"],
"SuccessResponses": ["true"]
}
Could you please tell me the correct syntax ? Getting 500 error msg.
Thanks,
Gaurav
01/08/2024 06:45 PM
Does script working from powershell ?
01/08/2024 10:49 PM
Yes, It's working in powershell.
02/16/2024 06:24 PM
Were you able to resolve this? I have the same issue currently. Get a 500 error from Saviynt but script works locally and invoking a rest method via powershell works locally.