원도우

Windows Server에서 브라우저 없이 파일 다운로드하는 방법

변군이글루 2026. 1. 19. 16:32
반응형

Windows Server에서 브라우저 없이 파일 다운로드하는 방법

운영 중인 Windows Server 2016 환경에서는 보안 정책이나 최소 설치 구성 때문에 웹 브라우저, wget, curl 같은 다운로드 도구가 없는 경우가 많습니다.

PowerShell의 Invoke-WebRequest 사용(권장)

기본 사용법

powershell -Command "Invoke-WebRequest -Uri '다운로드주소' -OutFile '저장할파일명'"

예제

powershell -Command "Invoke-WebRequest -Uri 'https://scbyun.com/file.zip' -OutFile 'test.zip'"

Certutil을 이용한 파일 다운로드

certutil은 원래 인증서 관리용 도구이지만 네트워크 URL에서 파일을 가져오는 기능이 있어 서버 환경에서 종종 다운로드 용도로 활용됩니다.

 

기본 사용법

certutil -urlcache -split -f "다운로드주소" 저장할파일명

예제

certutil -urlcache -split -f "https://scbyun.com/file.zip" test.zip

Chocolatey 설치

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
> choco --version
2.6.0
728x90

wget 사용 방법

> wget
cmdlet Invoke-WebRequest(명령 파이프라인 위치 1)
다음 매개 변수에 대한 값을 제공하십시오.
Uri:

wget 설치

choco install wget

버전 정보

> choco list | findstr Wget
Wget 1.21.4
> wget.exe --version
GNU Wget 1.21.4 built on mingw32.

+cares +digest +gpgme +https +ipv6 +iri +large-file +metalink -nls
+ntlm +opie +psl +ssl/openssl

Wgetrc:
    C:/msys64/qemu/opt/misc-x64/etc/wgetrc (system)
...

기본 사용법

wget [OPTION]... [URL]...

예제

wget https://scbyun.com/file.zip

curl 사용 방법

> curl
cmdlet Invoke-WebRequest(명령 파이프라인 위치 1)
다음 매개 변수에 대한 값을 제공하십시오.
Uri:

curl 설치

choco install curl

버전 정보

> choco list | findstr curl
curl 8.18.0
> curl.exe --version
curl 8.13.0 (Windows) libcurl/8.13.0 Schannel zlib/1.3.1 WinIDN
Release-Date: 2025-04-02
Protocols: dict file ftp ftps http https imap imaps ipfs ipns mqtt pop3 pop3s smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS HSTS HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM SPNEGO SSL SSPI threadsafe Unicode UnixSockets

기본 사용법

curl [options...] <url>

예제

curl -L -o test.zip https://scbyun.com/file.zip

 

참고URL

- 변군이글루 블로그 : PowerShell Invoke-WebRequest 명령어

- 변군이글루 블로그 : 초콜릿를 설치하고 사용하는 방법

 

728x90
반응형