/build/static/layout/Breadcrumb_cap_w.png

Unzip File to a Directory

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. 


 


0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
Posted by: Ziggi 5 years ago
Blue Belt
0

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

See below

Posted by: SMal.tmcc 5 years ago
Red Belt
0

Top Answer

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



Comments:
  • Will this work even if the Directory doesn't exist? - ceasar.trejo 5 years ago
Posted by: SMal.tmcc 5 years ago
Red Belt
0

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




Comments:
  • Thank you, your answers solved my problem! - ceasar.trejo 5 years ago
 
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