0 votes

Hello,

We have a problem with the way Adaxes detects % as variables in all PowerShell scripts.
We are configuring a HTML email template for all out going emails from the system and use HTML table with to set the sizes.

The sizing needs to have a % sign, for example:
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-spacing:0;text-align:left;padding:0;margin:0">

Adaxes will think that this is a start of a variable. Is there anyway around this?

Regards,
ice-dog

by (170 points)

1 Answer

0 votes
by (289k points)
selected by
Best answer

Hello,

Yes, you are right, in the PowerShell editor, the percent character (%) is recognized as the beginning of a value reference. To remedy the issue, duplicate percent characters where they are not related to value references. I.e. replace % character with %%. For example, the line you referenced will look as follows:

<table width="100%%" border="0" cellspacing="0" cellpadding="0" style="border-spacing:0;text-align:left;padding:0;margin:0">

0

Thank you
That's an impressively quick response
ice-dog

Related questions

0 votes
1 answer

I'm creating a powershell script to handle all the 'modify user' steps, instead of having them be individual steps in Adaxes. This script runs after we fill out a form. A ... empty parameter considered as either a "tab" or "4 spaces" ? Thanks for your help.

asked Dec 12, 2022 by lw.fa (130 points)
0 votes
1 answer

Hello, I have few business rules for AD account rename to validate input data and make sure username selected is unique in AD, but sometimes it fails with very non-explaining error " ... a "Before updating a User" rule BR14 - is a "Before renaming a User" rule

asked May 14, 2018 by DLe (760 points)
0 votes
1 answer

I used the script below to try and accomplish this but I get an error. I did try to leave a comment but it would not let me. I tried running ... .adaxes.com/script-repository/add-users-located-in-particular-organizational-units-to-unmanaged-accounts-s178.htm

asked Nov 14, 2022 by raul.ramirez (210 points)
0 votes
1 answer

I have written a de-provisioning job as part of removing a terminated employee's access. This job disables the account, resets the password, sets the account description to ... part of the de-provision job. Could I possibly get help with this? Thanks!

asked Jan 27, 2014 by PunkinDonuts (360 points)
0 votes
1 answer

Hello Is it possible to reference a powershell script placed in a folder somewhere on the Adaxes server, instead of embedding them in each BR and CC ? I'm planning to install a powershell GUI product, for easy debugging. - Thanks

asked Feb 17, 2016 by Boxx.dk (2.6k points)
3,548 questions
3,238 answers
8,232 comments
547,810 users