Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Escaping $ character in powershell script for Exchange

mohitarora1
Regular Contributor
Regular Contributor

Hi Team,

 

We are trying to enable mailbox in MS Exchange 2016 via WINCONNECTOR. We are calling a powershell script but unfortunately we are unable to escape $ in one of the lines.

$path = [file://$Server/$driveLetter$/$pathPortion]\\$Server\$driveLetter$\$pathPortion

In the above line, second $ is what is causing us the issue and we are getting below error.

mohitarora1_0-1715717322503.png

We tried with below, however, we are still getting the issue.

[file://\\$Server/\\$driveLetter\\$/\\$pathPortion]\\\\$Server\\$driveLetter\\$\\$pathPortion

Any leads on how to resolve this issue?

Thanks in advance.

 

Regards,

Mohit Arora

1 REPLY 1

rushikeshvartak
All-Star
All-Star

Refer https://forums.saviynt.com/t5/saviynt-knowledge-base/json-handling-escape-characters-in-rest-connect...


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.