Running Powershell Scripts From My K1000

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

0 Comments   [ + ] Show comments

Answers (4)

Posted by: Nico_K 2 years ago
Red Belt

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.

  • 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. - rruhl 2 years ago
  • 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. - kentwest 11 months ago
Posted by: Mashby1 11 months ago
Senior White Belt
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.
Posted by: isudothings 2 years ago
Senior Purple Belt

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


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