troubleshooting Question

Wait for Finish Zip

Avatar of Gonzalo Becerra
Gonzalo BecerraFlag for Argentina asked on
Powershell
14 Comments2 Solutions2672 ViewsLast Modified:
Hi guys,

I'm finishing one script and I have one issue when I need zip files.

I need wait for finish zip and then continue with the rest.

This is my command line:
echo "Creating Zip File with Solutions"
	Get-Item $backupdestination\*.* -Include *.*  -Exclude exportwsp.wsp | out-zip $backupdestination"\"$backupfilename"-Solutions"$guid".zip"

I tried with Start-Job using wait but I have problems with Out-Zip:
The term 'out-zip' is not recognized as the name of a cmdlet

Could you help me to know how to wait to finish the Zip File before continue the Script?

Thanks in advance,
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 14 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros