Skip to content

[ QUESTION ] ...Expand variable within runscript -Raw #278

Answered by bk-cs
eddietorial asked this question in Q&A
Discussion options

You must be logged in to vote

You are using the wrong type of quotes for what you're trying to do: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules?view=powershell-7.3

Try this:
(Invoke-FalconRtr runscript ('-Raw=```(Get-ChildItem {0}).length```' -f $mem_file_path) -HostId $host_id).stdout

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by eddietorial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #277 on February 08, 2023 15:57.