Disable policy not passing " in custom script

Disable policy not passing " in custom script

I am using a custom script for account creations and passing the following just fine:

customCREATE.bat  "%physicalDeliveryOfficeName%" %username%

When I try to do the same in the custom fields for disabling an account, the quote is transformed:


customDISABLE.bat  "%physicalDeliveryOfficeName%" %username%


I am scripting off of the office field because they all have their own file servers. The problem is, we have some offices with two-word names, so there is a space. I need to pass the quotes so it is correctly registered. Is there a trick to this? Maybe manually editing a table in the database?

Thanks in advance


                New to ADSelfService Plus?