/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Running Powershell Scripts From My K1000

02/18/2019 5758 views

Is there an intuitive way to run PS scripts from the SMA? 

0 Comments   [ + ] Show comments

Comments


All Answers

2

You can use the scripting module for that or a CIR, depending on what you want to do in the end with it.
You simply add the powershell-skript to the KACE script and start it from the scripting logic.

Answered 02/18/2019 by: Nico_K
Red Belt

  • What do you mean when you say "add the powershell-script to the KACE script"? I see "Run a batch file", but no option for any other scripts.
  • The 10.2 release notes say:

    "PowerShell support: Native PowerShell for KACE SMA online scripting is now supported. Previously the KACE SMA online script only allowed users to define a batch script, if they wanted to run PowerShell, they had to wrap that inside a batch file and invoke through batch scripting. PowerShell scripts can now be launched directly from the KACE SMA."

    But I'm not entirely able to parse what that means, nor can I find *any* documentation on this new feature.
0
I am so excited for this support. I have not tested it but I took it to mean that in the scripting you could do a .ps1 extension like you currently can do with .bat (online shell script) or that you could also upload a ps1 in the kscripting.
Answered 07/20/2020 by: Mashby1
White Belt

0

You can invoke them from the API as well!


Invoke-SmaScript -Server 'https://kace.example.com' -Credential (Get-Credential) -ScriptID 1234 -TargetMachineIDs 5678,2345,4567


https://github.com/ArtisanByteCrafter/KaceSMA/wiki/Scripting-Endpoints

Answered 02/26/2019 by: isudothings
Senior Purple Belt

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ