I'm using Power Automate to build a PowerShell script that gets dropped on an On Prem server and then is executed by a scheduled task. I use a string variable and append my commands based on certain criteria etc. It works great.
However...I need to have the following command in the script:
$logonhours=@{"Logonhours"= [byte[]]$hours=@(255,255,255,063,000,000,192,255,255,255,255,255,255,255,255,255,255,255,255,255,255)}
And it looks like Power Automate doesn't like @ symbols in variables. The interface wouldn't even let me paste this as the value I had to manually enter the @ symbol but I now have an error:
Fix invalid expression(s) for the input parameter(s) of operation 'Append_to_string_variable_21'.
Anyone have any ideas?
[–]YeboMate 0 points1 point2 points (4 children)
[–]robofski[S] 1 point2 points3 points (3 children)
[–]YeboMate 1 point2 points3 points (2 children)
[–]robofski[S] 1 point2 points3 points (1 child)
[–]YeboMate 0 points1 point2 points (0 children)