Hi,
I have a powershell script that we use for creating new accounts in AD and adding the password to PasswordState. It works OK, but I get an error if someone includes a \ in the title.
Example code
$jsonData = '
{
"PasswordListID":"278",
"Title":"'+ $($Title) +'",
"UserName":"'+$($username)+'",
"Description":"'+$($purpose)+'",
"HeartbeatEnabled":true,
"ValidationScriptID":"7",
"generatepassword":true,
"AccountTypeID":"65",
"ADDomainNetBIOS":"test",
"HeartbeatSchedule":"'+$($date)+'"
}'
$PasswordstateUrl