thomas-sh4u
thomas-sh4u
WWindmill
Created by Dannly on 6/11/2024 in #help
Sourcing PowerShell scripts from other PowerShell scripts
I hav just tested it with an external Repository other than PSGallery and it works so far.
9 replies
WWindmill
Created by Dannly on 6/11/2024 in #help
Sourcing PowerShell scripts from other PowerShell scripts
is it possible to register an own PowerShell Repo, like: Register-PSRepository -Name "PrivatesRepo" -SourceLocation "https://IhrNuGetServer/nuget" -InstallationPolicy Trusted And then use: Install-Module -Name IhrModul -Repository PrivatesRepo ?
9 replies
WWindmill
Created by Dannly on 6/11/2024 in #help
Sourcing PowerShell scripts from other PowerShell scripts
hi, import-module is not running? or can i use this cmd? your template suggest this. >> Import-Module MyModule Import-Module WindmillClient Connect-Windmill Get-WindmillVariable -Path 'u/user/foo' the last line of the stdout is the return value <<
9 replies
WWindmill
Created by thomas-sh4u on 6/27/2024 in #help
how can PowerShell returns an json array?
can you gibe me a hint, how should the follow task? i have multiple powershell scripts that getting information from different api's, each script returns a json. should i create one workflow and put each of the script there or is it better to use multiple schedules with multiple workflows? oh each workflow is only a powershell scipt and an "store to elasticsearch" python-script.
17 replies
WWindmill
Created by thomas-sh4u on 6/27/2024 in #help
how can PowerShell returns an json array?
yeah, it run's 🙂
17 replies
WWindmill
Created by thomas-sh4u on 6/27/2024 in #help
how can PowerShell returns an json array?
okay, great.
17 replies
WWindmill
Created by thomas-sh4u on 6/27/2024 in #help
how can PowerShell returns an json array?
any news here? I have no idea what i can test here.
17 replies
WWindmill
Created by thomas-sh4u on 6/27/2024 in #help
how can PowerShell returns an json array?
lowercase is not running also: $jsonData | Out-File -FilePath "./result.json"
17 replies
WWindmill
Created by thomas-sh4u on 6/27/2024 in #help
how can PowerShell returns an json array?
here a code snippet: $jsonData = @{ "name" = "John Doe" "age" = 30 "city" = "New York" } | ConvertTo-Json '# the last line of the stdout is the return value $jsonData | Out-File -FilePath "./Result.json"
17 replies
WWindmill
Created by thomas-sh4u on 6/27/2024 in #help
how can PowerShell returns an json array?
is there a working sample?
17 replies
WWindmill
Created by thomas-sh4u on 6/27/2024 in #help
how can PowerShell returns an json array?
it seems that the result.json is not read as result of the step.
17 replies
WWindmill
Created by thomas-sh4u on 6/27/2024 in #help
how can PowerShell returns an json array?
hm, but it does not work 😦
17 replies
WWindmill
Created by thomas-sh4u on 6/27/2024 in #help
how can PowerShell returns an json array?
i found the answer in the docs 😉 output must writen to the file ./result.json
17 replies