Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to extract a zip file on Server Core 2008.

Can anyone tell me the command to do so?

share|improve this question

migrated from Jan 5 '10 at 4:38

This question came from our site for professional and enthusiast programmers.

Move this question to one of the other trilogy sites, please. It doesn't belong here. – David Pfeffer Jan 5 '10 at 4:22
I think the question is okay for Serverfault. – splattne Jan 5 '10 at 9:09

You could use this code snippet for a .vbs file (VBScript):

Function WindowsUnZip(sUnzipFileName, sUnzipDestination)

  Set oUnzipFSO = CreateObject("Scripting.FileSystemObject")

  If Not oUnzipFSO.FolderExists(sUnzipDestination) Then
  End If

  With CreateObject("Shell.Application")
       .NameSpace(sUnzipDestination).Copyhere .NameSpace(sUnzipFileName).Items
  End With

  Set oUnzipFSO = Nothing

End Function

Call WindowsUnZip("C:\", "C:\DestinationFolder\")
share|improve this answer

There is no command line utility buit in to unzip files. When copying files to server core I recommend using makecab and expand. Or you can install the unzip command line tool of your preference.

share|improve this answer
1 Has a good command line version. – Qwerty Jan 5 '10 at 5:16
yeah I've had issues with 7-zip. Like most open source software, YMMV. – Jim B Jan 5 '10 at 5:37

zip.exe and unzip.exe are in my tools folder since 1994 and they work fine in Server Core. I use the versions from Info-ZIP

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.