Automation

 View Only
  • 1.  Is it possible to query and change configstorecli via PowerCLI ???

    Posted Mar 07, 2024 10:42 AM

    Is there a way to query configstorecli through PowerCLI? We've got a lot of hosts to run a check against and maybe update with a new setting. 

    The command I would like to run is:
    configstorecli config current get -c esx -g services -k vpxa_solution_user_config | grep -i server_ip




  • 2.  RE: Is it possible to query and change configstorecli via PowerCLI ???
    Best Answer

    Posted Mar 07, 2024 10:53 AM

    Not directly via a PowerCLI cmdlet, but you can use Posh-SSH and the Invoke-SshCommand to execute the command.
    Then eventually use Get-SCPItem and Set-SCPItem to download and upload the JSON files.
    Changing a JSON file with PowerShell is straightforward.



  • 3.  RE: Is it possible to query and change configstorecli via PowerCLI ???

    Posted Mar 07, 2024 06:05 PM

    Thanks, with these I was able to write a script that scans the hosts!