04/11/2019 471 views

I and Attempting to run a script that uses a PowerShell script to unzip a file to the top level of the directory (C:), so far I have had no luck under scripting. Below is how I have set my script up. It works fine under Distribution, but I only want to deploy to units that do not have the directory. Any help would be greatly appreciated. 


Answer Summary:
0 Comments   [ + ] Show comments


Answer Chosen by the Author


Keep it simple, you do not need a PS script use the built in Kscript functions

Answered 04/12/2019 by: SMal.tmcc
Red Belt

  • Will this work even if the Directory doesn't exist?

All Answers


You need to first call PowerShell,
Then you need to call the Script through KACE_DEPENDENCY

See below

Answered 04/12/2019 by: Ziggi
Blue Belt


change the verify to this to create the directory if it does not exist

Answered 04/12/2019 by: SMal.tmcc
Red Belt

  • Thank you, your answers solved my problem!