I'm trying to use cfexecute to update disabled users' domain attributes which requires their UserDN. When I query this from the DB and use cfoutput it looks fine but cfexecute seems to have a problem with the slash or spaces or something. I've tried double quotes (error) and single quotes around the argument (no change). Any help would be appreciated.
cfoutput produces: CN=Blow\, Joe L,OU=Employees,DC=xx,DC=xxxx,DC=com
cfexecute produces: Payne\ CN
<cfexecute name="moveUser.bat" arguments="'#userDN#'" timeOut="10"></cfexecute>
What does moveUser.bat do (show the code, if possible) and how does userDN look like?
1st line logs to a file, 2nd line renames the user's home folder, 3rd line runs the vbs where I update the user's AD attributes. Both scrips work perfectly when run by hand but because the UserDN is not complete from cfexcute it fails.
echo %date% %1 >> C:\moveUser.log
Move %1 %1_DISABLED_%date%
cscript.exe C:\ColdFusion\Script\updateUser.vbs %1