Download all free ebooks from Microsoft using Powershell

cThis script is not very efficient (downloads everything twice, working on that still BUT)

 

If you’d like to conveniently download all the ebooks Eric Ligman has been kind enough to share out… You can run this in PowerShell 3.0 or higher (It was tested in Windows 10 – Powershell 5 but should work in earlier versions)

 

# Create Web client object

$Wc=New-object system.net.webclient

$link=’https://blogs.msdn.microsoft.com/mssmallbiz/2016/07/10/free-thats-right-im-giving-away-millions-of-free-microsoft-ebooks-again-including-windows-10-office-365-office-2016-power-bi-azure-windows-8-1-office-2013-sharepoint-2016-sha/’

# Download the source page

$result=Invoke-WebRequest -Uri $link

# Get a list of the URLS of the books and resources with Eric’s short name in there

$URIList=$result.links | where { $_.OuterHTML -match ‘ligman.me’ }

Foreach ($URI in $URIList)
{
# Get the Download link

$DownloadLink=$URI.href

# Find the original filename (Thanks to Dr. Tobias Weltner’s tip on this!)

$Response=[system.net.webrequest]::Create($DownloadLink).getresponse()
# Scoop out the file name

$filename=($Response.ResponseURI.AbsolutePath.split(‘/’)[-1])
# Download the goodies

$wc.downloadfile($downloadlink,$filename)
#
$Response.close()
}

 

This will take a while and it’s NOT going to show a progress bar (you can play with that) but you don’t need to sit and watch.   Warning… this may hit your bandwidth so try to do it on your personal account…. not the company internet

Download all free ebooks from Microsoft using Powershell

This script is not very efficient (downloads everything twice, working on that still BUT)

 

If you’d like to conveniently download all the ebooks Eric Ligman has been kind enough to share out… You can run this in PowerShell 3.0 or higher (It was tested in Windows 10 – Powershell 5 but should work in earlier versions)

 

# URL to website

$link=’https://blogs.msdn.microsoft.com/mssmallbiz/2016/07/10/free-thats-right-im-giving-away-millions-of-free-microsoft-ebooks-again-including-windows-10-office-365-office-2016-power-bi-azure-windows-8-1-office-2013-sharepoint-2016-sha/’

# Download website page

$result=Invoke-WebRequest -Uri $link

# Get list of all links with Eric’s Short URL

$URIList=$result.links | where { $_.OuterHTML -match ‘ligman.me’ }
Foreach ($URI in $URIList)
{
# Get the Hyperlink to the book

$DownloadLink=$URI.href

# Download the book

$file=Invoke-WebRequest -uri $DownloadLink

# Get the actual filename from Content

$filename=($File.Baseresponse.ResponseURI.AbsolutePath.split(‘/’)[-1])

# Here is the stupid part I didn’t figure out yet – RE download the book

Invoke-WebRequest -uri $Downloadlink -outfile $Filename
}

 

This will take a while and it’s NOT very efficient (Invoke-WebRequest gives you progress but it’s slow) but you don’t need to sit and watch.   Warning… this may hit your bandwidth so try to do it on your personal account…. not the company internet

Two Minutes to RTM

A long time ago in a Digital World Far FAR away I was a “Friday Funny Guy” and had a VERY bad habit of rewriting lyrics to some pretty cool tunes

I don’t know HOW this got into my head today but…. Iron Maiden will come out and get me for this one.

Sing this to “Two Minutes to Midnite” if you’re feeling Geeky, Mischievous or have actually sat down to drink a “Pan Galactic Gargle Blaster”

It’s all the same, no matter name
An oversold solution
We run about, Hands shake and shout
Hope for a resolution

The Clients seek not one more week
Release it for their reason
The Budget’s gone and no more fun
It’s a bloody buggy Hell

[Chorus]
The Compiler’s freed oh a Hellish Creed
Of Glitches, of Garbage, our bane
Make it run today, maybe go to play
We contractually tied evermore

Two minutes to RTM
The code that falls apart so soon
Two minutes to RTM
The app will soon become our doom

The clients they yell, “It’s all to Hell
What will you do? Appease us!”
Marketing came, to save the name
And told them more freaking lies yeah

Oh yon digital beast laps away at us
Patch a line and fix it away
But the zeros and ones, cry foul again
And take our sleep away

[Chorus]
The Compiler’s freed a Hellish Creed
Of Glitches, of Garbage, our bane
Make it run today, maybe go to play
We contractually tied evermore

Two minutes to RTM
The code that falls apart so soon
Two minutes to RTM
The app will soon become our doom

As the lines add up and bugs they dup
Its purpose gone a strew
The moans and whine in the forums wind
point the fingers right at you

As Sales and Marketing pour
on Wine and sing what’s so untrue
To tune of unsold features
To make that version number 2

[Chorus]
The Compiler’s freed a Hellish Creed
Of Glitches, of Garbage, our bane
Make it run today, maybe go to play
We contractually tied evermore

Two minutes to RTM
The code that falls apart so soon
Two minutes to RTM
The app will soon become our doom

Release IT, Release IT, Release IT, It sorta works
Release IT, Release IT, Release IT, It sorta works
Release IT
It Sorta Works!