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 (223k 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

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 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)
0 votes
1 answer

Hello, I am using a custom task to run PowerShell scripts that migrate users to Office 365. After the initial migration is complete, I'm running a second script ... .Actions.RunScriptAction.Execute(ICommand command) --- End of inner exception stack trace ---

asked Feb 19, 2015 by DFassett (710 points)
0 votes
1 answer

I often need to step through a script in the ISE debugger to troubleshoot or verify its operation. My problem is that I haven't been able to find a way to do ... way to interactively run a script uses the $Context variable so you can step through/debug it?

asked Dec 18, 2016 by rbeu (100 points)
2,761 questions
2,494 answers
6,537 comments
1,482,434 users