Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

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 this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.