Forum Discussion
DanSchuster_234
Jan 19, 2016Historic F5 Account
Powershell calling a script
Hi,
How do you call a script via PowerShell? Looking to do the equivalent of this successful curl command but via PS:
curl -k -u admin -H "Content-Type: application/json" -X POST https://...
- Jan 19, 2016
Your body needs to be just like it is in your curl example. It needs to be in JSON format. i.e.
$body = '{ "command":"run", "utilCmdArgs":"dtstest 10.1.10.1" }'
Brad_Parker_139
Nacreous
Your body needs to be just like it is in your curl example. It needs to be in JSON format. i.e.
$body = '{
"command":"run",
"utilCmdArgs":"dtstest 10.1.10.1"
}'
DanSchuster_234
Jan 20, 2016Historic F5 Account
Thanks Brad, works perfectly now!!!!!
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects