/build/static/layout/Breadcrumb_cap_w.png
04/11/2019 91 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

Comments


Answer Chosen by the Author

0

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

0

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

See below

Answered 04/12/2019 by: Ziggi
Orange Senior Belt

0

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!