/build/static/layout/Breadcrumb_cap_w.png

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 5 years ago
Red Belt
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.


Comments:
  • 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 5 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 4 years ago
Posted by: Mashby1 4 years ago
Purple Belt
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.
Posted by: isudothings 5 years ago
Senior Purple 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

 
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