wget for Windows Server core

I’m setting up a new IIS role on a new install of Windows Server 2019 core and I needed to grab a file from a remote webserver.

My go-to for this would be the powershell alias wget. This is just an alias for Invoke-WebRequest. Problem, on Server Core is that it requires the Internet Explorer engine – which isn’t going to be available on Server Core.

One workaround is to use the -UseBasicParsing option.

invoke-webrequest -usebasicparsing https://example.com/download.zip -out download.zip

But I also found another neat trick – and this method is a LOT faster to download during my testing.

Import-Module BitsTransfer
Start-BitsTransfer -source "https://example.com/download.zip"

This will save the file in the working directory.

Tool: bitcalc – A Bit Calculator in .NET

Convert between bits/bytes/kilobits/kilobytes/megabits/megabytes/gigabits/gigabytes

What is it?

This is completely based on Matisse.net’s online bitcalc tool: http://www.matisse.net/bitcalc/

Enter in an amount of units and click calculate.  For example, in the screenshot, I entered in 1024 gigabytes.  The calculator converts 1024GB to bits, bytes, kilobits, kilobytes, megabits, megabytes, gigabits, gigabytes, terabits, terabytes, petabits and petabytes.

I have written this in .NET 2.0 and is a standalone application for you to consume and use. I use this ALL the time.

Screenshot

2013-02-15_134805

Download

Download here:  bitcalc

Changelog

2/15/2013: Added copy to clipboard. You can copy to clipboard by double-clicking a cell, selecting multiple cells and right-clicking and choosing “Copy”.

Windows Update – Error number: 0x8DDD0018

When attempting to run Windows Update the following message appears: ‘Error number: 0x8DDD0018.’ This message states that the Automatic Updates, BITS, and Event Log services must be started, but they are all started and WinUpdates still fails.

Run this command from a command prompt:

regsvr32.exe wuaueng.dll