/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Unzip File to a Directory

04/11/2019 952 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
Blue 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!
 
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