Powershell query- Azuredevops

%3CLINGO-SUB%20id%3D%22lingo-sub-3278647%22%20slang%3D%22en-US%22%3EPowershell%20query-%20Azuredevops%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3278647%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20to%20write%20a%20power%20Shell%20script%20to%20pull%20out%20all%20the%20dll%20and%20pdb%20file%20from%20default%20azure%20directory%20and%20zip%20them%20in%20a%20folder.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3278647%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E.Net%20Core%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3288885%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20query-%20Azuredevops%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3288885%22%20slang%3D%22en-US%22%3E%3CP%3Ethanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1209009%22%20target%3D%22_blank%22%3E%40Harm_Veenstra%3C%2FA%3E%26nbsp%3Bfor%20your%20response.%20It%20works%20%3Athumbs_up%3A%3Athumbs_up%3A%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3288339%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20query-%20Azuredevops%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3288339%22%20slang%3D%22en-US%22%3EDid%20this%20work%20out%20for%20you%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3282408%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20query-%20Azuredevops%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3282408%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20Cloud%20Shell%20you%20can%20use%3CBR%20%2F%3Eget-childitem%20*.dll%2C%20*.pdb%20-Recurse%20%7C%20Compress-Archive%20-DestinationPath%20%2Fhome%2Fusername%2Fsubfolder%2Fcollection.zip%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3278657%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20query-%20Azuredevops%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3278657%22%20slang%3D%22en-US%22%3EHey%20friend%2C%20if%20you%20know%20the%20script%20please%20help%20me%20asap.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3288898%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20query-%20Azuredevops%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3288898%22%20slang%3D%22en-US%22%3E%3CP%3EGlad%20to%20hear%20that%2C%20please%20mark%20my%20answer%20as%20solution%20to%20mark%20it%20as%20solved.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I need to write a power Shell script to pull out all the dll and pdb file from default azure directory and zip them in a folder.

5 Replies
Hey friend, if you know the script please help me asap.

In Cloud Shell you can use
get-childitem *.dll, *.pdb -Recurse | Compress-Archive -DestinationPath /home/username/subfolder/collection.zip

Did this work out for you?

thanks @Harm_Veenstra for your response. It works :thumbs_up::thumbs_up:

Glad to hear that, please mark my answer as solution to mark it as solved.